@nfq/eslint-config 1.2.3
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/.eslintrc +3 -0
- package/config/globals.js +14 -0
- package/config/plugins.js +14 -0
- package/config/settings.js +4 -0
- package/index.js +22 -0
- package/package.json +57 -0
- package/pnpm-lock.yaml +1708 -0
- package/rules/arrays.js +11 -0
- package/rules/best-practices.js +191 -0
- package/rules/errors.js +61 -0
- package/rules/es6.js +103 -0
- package/rules/imports.js +217 -0
- package/rules/index.js +35 -0
- package/rules/node.js +49 -0
- package/rules/performance.js +9 -0
- package/rules/promises.js +20 -0
- package/rules/react-a11y.js +115 -0
- package/rules/react.js +319 -0
- package/rules/sanitize.js +8 -0
- package/rules/security.js +19 -0
- package/rules/strict.js +10 -0
- package/rules/style.js +414 -0
- package/rules/styled-components.js +8 -0
- package/rules/variables.js +35 -0
package/.eslintrc
ADDED
package/index.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const global = require('./config/globals');
|
|
2
|
+
const plugins = require('./config/plugins');
|
|
3
|
+
const settings = require('./config/settings');
|
|
4
|
+
const rules = require('./rules');
|
|
5
|
+
|
|
6
|
+
module.exports = {
|
|
7
|
+
env: {
|
|
8
|
+
browser: true,
|
|
9
|
+
es6: true,
|
|
10
|
+
node: true
|
|
11
|
+
},
|
|
12
|
+
extends: rules,
|
|
13
|
+
globals: global,
|
|
14
|
+
parser: '@babel/eslint-parser',
|
|
15
|
+
parserOptions: {
|
|
16
|
+
ecmaFeatures: {jsx: true},
|
|
17
|
+
ecmaVersion: 8,
|
|
18
|
+
requireConfigFile: false
|
|
19
|
+
},
|
|
20
|
+
plugins,
|
|
21
|
+
settings
|
|
22
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nfq/eslint-config",
|
|
3
|
+
"version": "1.2.3",
|
|
4
|
+
"engines": {
|
|
5
|
+
"node": ">= 12.0.0"
|
|
6
|
+
},
|
|
7
|
+
"description": "Eslint configuration for all nfq projects",
|
|
8
|
+
"main": "index.js",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"eslint",
|
|
14
|
+
"eslintconfig",
|
|
15
|
+
"codestyle",
|
|
16
|
+
"config"
|
|
17
|
+
],
|
|
18
|
+
"peerDependencies": {
|
|
19
|
+
"@babel/eslint-parser": ">= 7",
|
|
20
|
+
"@nfq/eslint-plugin": ">= 0.6.0",
|
|
21
|
+
"eslint": ">= 7",
|
|
22
|
+
"eslint-import-resolver-alias": ">= 1",
|
|
23
|
+
"eslint-plugin-array-func": ">= 3",
|
|
24
|
+
"eslint-plugin-better-styled-components": ">= 1",
|
|
25
|
+
"eslint-plugin-import": ">= 2",
|
|
26
|
+
"eslint-plugin-jsx-a11y": ">= 6",
|
|
27
|
+
"eslint-plugin-no-unsanitized": ">= 3",
|
|
28
|
+
"eslint-plugin-node": ">= 11",
|
|
29
|
+
"eslint-plugin-perf-standard": ">= 1",
|
|
30
|
+
"eslint-plugin-promise": ">= 5",
|
|
31
|
+
"eslint-plugin-react": ">= 7",
|
|
32
|
+
"eslint-plugin-security": ">= 1",
|
|
33
|
+
"eslint-plugin-sort-destructure-keys": ">= 1"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"confusing-browser-globals": "^1.0.10"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@babel/eslint-parser": "7.14.5",
|
|
40
|
+
"@nfq/eslint-plugin": "^0.6.0",
|
|
41
|
+
"eslint": "7.28.0",
|
|
42
|
+
"eslint-import-resolver-alias": "^1.1.2",
|
|
43
|
+
"eslint-plugin-array-func": "^3.1.7",
|
|
44
|
+
"eslint-plugin-better-styled-components": "^1.1.2",
|
|
45
|
+
"eslint-plugin-import": "2.23.4",
|
|
46
|
+
"eslint-plugin-jsx-a11y": "^6.3.1",
|
|
47
|
+
"eslint-plugin-no-unsanitized": "3.1.5",
|
|
48
|
+
"eslint-plugin-node": "^11.1.0",
|
|
49
|
+
"eslint-plugin-perf-standard": "^1.0.3",
|
|
50
|
+
"eslint-plugin-promise": "5.1.0",
|
|
51
|
+
"eslint-plugin-react": "7.24.0",
|
|
52
|
+
"eslint-plugin-security": "^1.4.0",
|
|
53
|
+
"eslint-plugin-sort-destructure-keys": "^1.3.5"
|
|
54
|
+
},
|
|
55
|
+
"author": ".NFQ | Christoph Kruppe",
|
|
56
|
+
"license": "ISC"
|
|
57
|
+
}
|