Skip to content

Commit 70ca58d

Browse files
committed
Updated eslint files
1 parent 0cb6108 commit 70ca58d

File tree

2 files changed

+33
-80
lines changed

2 files changed

+33
-80
lines changed

.eslintrc.js

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,21 @@
11
module.exports = {
2-
'env': {
3-
'browser': true,
4-
'commonjs': true,
5-
'es2021': true,
6-
'node': true
2+
env: {
3+
browser: true,
4+
commonjs: true,
5+
es2021: true,
6+
node: true,
77
},
8-
'extends': [
9-
'eslint:recommended',
10-
'plugin:react/recommended'
11-
],
12-
'parserOptions': {
13-
'ecmaFeatures': {
14-
'jsx': true,
8+
extends: ['eslint:recommended', 'plugin:react/recommended'],
9+
parserOptions: {
10+
ecmaFeatures: {
11+
jsx: true,
1512
},
16-
'ecmaVersion': 12,
17-
'sourceType': 'module'
13+
ecmaVersion: 12,
14+
sourceType: 'module',
1815
},
19-
'plugins': [
20-
'react'
21-
],
22-
'rules': {
23-
'indent': ['warn', 2],
16+
plugins: ['react'],
17+
rules: {
18+
indent: ['warn', 2],
2419
'no-unused-vars': ['off', { vars: 'local' }],
2520
'prefer-const': 'warn',
2621
quotes: ['warn', 'single'],
@@ -30,20 +25,25 @@ module.exports = {
3025
'no-restricted-syntax': [
3126
'error',
3227
{
33-
'selector': 'CallExpression[callee.object.name=\'console\'][callee.property.name!=/^(log|warn|error|info|trace)$/]',
34-
'message': 'Unexpected property on console object was called'
35-
}
28+
selector:
29+
"CallExpression[callee.object.name='console'][callee.property.name!=/^(log|warn|error|info|trace)$/]",
30+
message: 'Unexpected property on console object was called',
31+
},
3632
],
37-
'spaced-comment': ['error', 'always', {
38-
'line': {
39-
'markers': ['/'],
40-
'exceptions': ['-', '+']
33+
'spaced-comment': [
34+
'error',
35+
'always',
36+
{
37+
line: {
38+
markers: ['/'],
39+
exceptions: ['-', '+'],
40+
},
41+
block: {
42+
markers: ['!'],
43+
exceptions: ['*'],
44+
balanced: true,
45+
},
4146
},
42-
'block': {
43-
'markers': ['!'],
44-
'exceptions': ['*'],
45-
'balanced': true
46-
}
47-
}]
48-
}
47+
],
48+
},
4949
};

.eslintrc_2.js

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)