Skip to content

Commit ec84815

Browse files
chore: add eslint to project
1 parent a2f109a commit ec84815

5 files changed

Lines changed: 3565 additions & 77 deletions

File tree

.eslintrc.cjs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
module.exports = {
2+
env: {
3+
es2021: true,
4+
node: true,
5+
},
6+
extends: 'airbnb-base',
7+
overrides: [
8+
],
9+
parserOptions: {
10+
ecmaVersion: 'latest',
11+
sourceType: 'module',
12+
},
13+
rules: {
14+
'indent': ['error', 4, { 'SwitchCase': 1 }],
15+
'max-len': [
16+
'error', {
17+
'code': 150,
18+
'ignoreStrings': true,
19+
'ignoreTemplateLiterals': true,
20+
'ignoreComments': true,
21+
}],
22+
'linebreak-style': 0,
23+
'arrow-parens': [2, 'as-needed', { 'requireForBlockBody': true }],
24+
'no-plusplus': ['error', { 'allowForLoopAfterthoughts': true }],
25+
'no-console': 'off',
26+
'import/extensions': 'off',
27+
},
28+
};

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jsLinters/eslint.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)