@petbee/eslint-config 1.0.12 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/eslint.config.mjs +48 -0
- package/package.json +5 -2
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import js from '@eslint/js'
|
|
2
|
+
import parser from '@typescript-eslint/parser'
|
|
3
|
+
import tsPlugin from '@typescript-eslint/eslint-plugin'
|
|
4
|
+
|
|
5
|
+
import prettierConfig from './rules/prettier.js'
|
|
6
|
+
import errorsConfig from './rules/errors.js'
|
|
7
|
+
import nodeConfig from './rules/node.js'
|
|
8
|
+
import styleConfig from './rules/style.js'
|
|
9
|
+
import variablesConfig from './rules/variables.js'
|
|
10
|
+
import bestPracticesConfig from './rules/best-practices.js'
|
|
11
|
+
import importsConfig from './rules/imports.js'
|
|
12
|
+
import typescriptConfig from './rules/typescript.js'
|
|
13
|
+
import testsConfig from './rules/tests.js'
|
|
14
|
+
|
|
15
|
+
export default [
|
|
16
|
+
js.configs.recommended,
|
|
17
|
+
{
|
|
18
|
+
files: ['**/*.ts', '**/*.tsx'],
|
|
19
|
+
languageOptions: {
|
|
20
|
+
parser,
|
|
21
|
+
parserOptions: {
|
|
22
|
+
project: './tsconfig.json',
|
|
23
|
+
sourceType: 'module',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
plugins: {
|
|
27
|
+
'@typescript-eslint': tsPlugin,
|
|
28
|
+
},
|
|
29
|
+
settings: {},
|
|
30
|
+
env: {
|
|
31
|
+
node: true,
|
|
32
|
+
jest: true,
|
|
33
|
+
es6: true,
|
|
34
|
+
},
|
|
35
|
+
globals: {
|
|
36
|
+
__DEV__: true,
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
...prettierConfig,
|
|
40
|
+
...errorsConfig,
|
|
41
|
+
...nodeConfig,
|
|
42
|
+
...styleConfig,
|
|
43
|
+
...variablesConfig,
|
|
44
|
+
...bestPracticesConfig,
|
|
45
|
+
...importsConfig,
|
|
46
|
+
...typescriptConfig,
|
|
47
|
+
...testsConfig,
|
|
48
|
+
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@petbee/eslint-config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"description": "Petbee's eslint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -16,8 +16,11 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"main": "index.js",
|
|
19
|
+
"types": "./eslint.config.d.ts",
|
|
19
20
|
"files": [
|
|
20
21
|
"index.js",
|
|
22
|
+
"eslint.config.d.ts",
|
|
23
|
+
"eslint.config.mjs",
|
|
21
24
|
"rules/",
|
|
22
25
|
"lib/"
|
|
23
26
|
],
|
|
@@ -70,5 +73,5 @@
|
|
|
70
73
|
"publishConfig": {
|
|
71
74
|
"access": "public"
|
|
72
75
|
},
|
|
73
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "d91314aafe3e270498397c41fe3332a21cc2fc75"
|
|
74
77
|
}
|