File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 11const js = require ( '@eslint/js' )
22const tsParser = require ( '@typescript-eslint/parser' )
33const tsPlugin = require ( '@typescript-eslint/eslint-plugin' )
4- const unicorn = require ( 'eslint-plugin-unicorn' )
54const importPlugin = require ( 'eslint-plugin-import' )
5+ const unicorn = require ( 'eslint-plugin-unicorn' )
66
77module . exports = [
8+ // Base JS config
89 {
910 ...js . configs . recommended ,
1011 plugins : {
@@ -37,13 +38,14 @@ module.exports = [
3738 'keyword-spacing' : [ 'error' ] ,
3839 'require-atomic-updates' : 0 ,
3940 'linebreak-style' : [ 'error' , 'unix' ] ,
40- 'unicorn/template-indent' : [ 'error' ] ,
4141 'import/extensions' : [ 'error' , 'ignorePackages' ] ,
4242 'no-restricted-syntax' : [ 'error' , 'IfStatement > ExpressionStatement > AssignmentExpression' ] ,
43- 'unicorn/prefer-ternary' : 'error' ,
43+ '@typescript-eslint/no-unused-vars' : [ 'error' , { argsIgnorePattern : '^_' } ] ,
44+
4445 } ,
4546 } ,
4647
48+ // TypeScript files
4749 {
4850 files : [ '**/*.ts' ] ,
4951 plugins : {
You can’t perform that action at this time.
0 commit comments