@@ -7,8 +7,14 @@ const importPlugin = require('eslint-plugin-import')
77module . exports = [
88 {
99 ...js . configs . recommended ,
10- plugins : { unicorn, import : importPlugin } ,
11- languageOptions : { ecmaVersion : 2020 , sourceType : 'module' } ,
10+ plugins : {
11+ unicorn,
12+ import : importPlugin ,
13+ } ,
14+ languageOptions : {
15+ ecmaVersion : 2020 ,
16+ sourceType : 'module' ,
17+ } ,
1218 rules : {
1319 quotes : [ 'error' , 'single' , { avoidEscape : true } ] ,
1420 camelcase : [ 'error' , { properties : 'never' } ] ,
@@ -31,17 +37,21 @@ module.exports = [
3137 'keyword-spacing' : [ 'error' ] ,
3238 'require-atomic-updates' : 0 ,
3339 'linebreak-style' : [ 'error' , 'unix' ] ,
34- 'unicorn/prefer-native-coercion' : 'error' ,
3540 'unicorn/template-indent' : [ 'error' ] ,
3641 'import/extensions' : [ 'error' , 'ignorePackages' ] ,
3742 'no-restricted-syntax' : [ 'error' , 'IfStatement > ExpressionStatement > AssignmentExpression' ] ,
3843 'unicorn/prefer-ternary' : 'error' ,
3944 } ,
4045 } ,
46+
4147 {
4248 files : [ '**/*.ts' ] ,
43- plugins : { '@typescript-eslint' : tsPlugin } ,
44- languageOptions : { parser : tsParser } ,
49+ plugins : {
50+ '@typescript-eslint' : tsPlugin ,
51+ } ,
52+ languageOptions : {
53+ parser : tsParser ,
54+ } ,
4555 rules : {
4656 'no-unused-vars' : 'off' ,
4757 '@typescript-eslint/no-unused-vars' : 'error' ,
@@ -50,6 +60,8 @@ module.exports = [
5060 'no-redeclare' : 'off' ,
5161 } ,
5262 } ,
63+
64+ // Test files
5365 {
5466 files : [ '**/*.test.ts' ] ,
5567 rules : {
0 commit comments