Skip to content

Commit 4a19038

Browse files
committed
[chore]{wip} Add ESLint to the project
1 parent b4dbf2d commit 4a19038

File tree

4 files changed

+4912
-260
lines changed

4 files changed

+4912
-260
lines changed

Diff for: .editorconfig

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[*.{js,jsx,ts,tsx,vue}]
2+
indent_style = space
3+
indent_size = 2
4+
end_of_line = lf
5+
trim_trailing_whitespace = true
6+
insert_final_newline = true
7+
max_line_length = 100

Diff for: .eslintrc.cjs

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es2021: true,
5+
node: true,
6+
},
7+
extends: [
8+
'airbnb-base',
9+
],
10+
parserOptions: {
11+
ecmaVersion: 2020,
12+
sourceType: 'module',
13+
},
14+
rules: {
15+
'consistent-return': 'off',
16+
'no-prototype-builtins': 'off',
17+
'no-shadow': 'off',
18+
'import/extensions': 'off',
19+
},
20+
};

0 commit comments

Comments
 (0)