Skip to content

Commit 631d7c3

Browse files
authored
[2017] Update NPM packages (#54)
1 parent 9d01f55 commit 631d7c3

File tree

5 files changed

+886
-639
lines changed

5 files changed

+886
-639
lines changed

2017/.eslintrc.json

-17
This file was deleted.

2017/eslint.config.cjs

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
const globals = require('globals');
2+
const js = require('@eslint/js');
3+
4+
const {
5+
FlatCompat,
6+
} = require('@eslint/eslintrc');
7+
8+
const compat = new FlatCompat({
9+
baseDirectory: __dirname,
10+
recommendedConfig: js.configs.recommended,
11+
allConfig: js.configs.all
12+
});
13+
14+
module.exports = [...compat.extends('eslint:recommended'), {
15+
languageOptions: {
16+
globals: {
17+
...globals.commonjs,
18+
...globals.node,
19+
},
20+
21+
ecmaVersion: 12,
22+
sourceType: 'commonjs',
23+
},
24+
25+
rules: {
26+
indent: ['error', 2, {
27+
SwitchCase: 1,
28+
}],
29+
30+
'linebreak-style': ['error', 'unix'],
31+
32+
quotes: ['error', 'single', {
33+
avoidEscape: true,
34+
}],
35+
36+
semi: ['error', 'always'],
37+
},
38+
}];

0 commit comments

Comments
 (0)