Skip to content

Commit afa7859

Browse files
committed
Update ESLint config to require semicolons and fix Husky auto-install
1 parent d80030f commit afa7859

37 files changed

+6184
-3455
lines changed

.babelrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: ['@babel/preset-env']
3+
};

.eslintrc.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
module.exports = {
2+
env: {
3+
"es2020": true,
4+
"node": true,
5+
"browser": true,
6+
"jest": true
7+
},
8+
extends: 'standard',
9+
// "globals": {
10+
// "Atomics": "readonly",
11+
// "SharedArrayBuffer": "readonly"
12+
// },
13+
// "parserOptions": {
14+
// "ecmaFeatures": {
15+
// "jsx": true
16+
// },
17+
// "ecmaVersion": 2015,
18+
// "sourceType": "module"
19+
// },
20+
parser: "@babel/eslint-parser", // Use Babel parser to handle modern JS syntax
21+
plugins: [
22+
'standard',
23+
'promise'
24+
],
25+
rules: {
26+
'semi': ['error', 'always'],
27+
'semi-spacing': ['error', { before: false, after: true }]
28+
}
29+
};

0 commit comments

Comments
 (0)