power-linter 1.0.6 → 1.0.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "power-linter",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "power-linter — линтер (ESLint) и форматтер (Prettier) с расширяемой архитектурой для произвольных правил.",
5
5
  "main": "src/index.js",
6
6
  "author": "",
@@ -25,7 +25,7 @@
25
25
  "eslint-plugin-jsx-a11y": "^6.6.0",
26
26
  "eslint-plugin-react": "^7.30.1",
27
27
  "eslint-plugin-react-hooks": "^4.6.0",
28
- "power-esrules": "^0.1.0",
28
+ "power-esrules": "^0.1.1",
29
29
  "prettier": "^3.2.5"
30
30
  },
31
31
  "peerDependencies": {
@@ -1,63 +1,72 @@
1
1
  module.exports = {
2
- root: true,
3
- env: {
4
- browser: true,
5
- node: true,
6
- es2021: true,
7
- },
8
- extends: ['airbnb', 'airbnb/hooks', 'eslint:recommended', 'prettier', 'plugin:rules/recommended'],
9
- parser: '@babel/eslint-parser',
10
- parserOptions: {
11
- requireConfigFile: false,
12
- },
13
- globals: {
14
- document: true,
15
- localStorage: true,
16
- Headers: true,
17
- fetch: true,
18
- },
19
- rules: {
20
- 'no-continue': 0,
21
- 'consistent-return': 0,
22
- 'no-constant-condition': 0,
23
- 'arrow-parens': 0,
24
- 'no-else-return': 0,
25
- 'global-require': 0,
26
- 'max-len': ['error', { code: 120, ignorePattern: '^import\\W.*' }],
27
- 'linebreak-style': 0,
28
- indent: 0,
29
- 'prefer-template': ['warn'],
30
- 'no-restricted-syntax': 0,
31
- 'no-prototype-builtins': 0,
32
- 'no-param-reassign': ['error', { props: false }],
33
- 'comma-dangle': ['error', 'only-multiline'],
34
- 'no-undef': 0,
35
- 'no-shadow': 0,
36
- 'no-plusplus': 0,
37
- 'arrow-body-style': ['error', 'as-needed'],
38
- 'default-param-last': 0,
39
- 'class-methods-use-this': ['error', { enforceForClassFields: false }],
40
- 'no-use-before-define': ['error', { functions: false, classes: true, variables: true }],
41
- 'no-useless-escape': 'warn',
42
- 'no-console': ['error', { allow: ['warn', 'error'] }],
43
- 'func-names': 0,
44
- 'jsx-a11y/anchor-is-valid': ['warn'],
45
- 'jsx-a11y/no-static-element-interactions': 0,
46
- 'jsx-a11y/click-events-have-key-events': ['warn'],
47
- 'import/prefer-default-export': 0,
48
- 'import/extensions': ['warn', { jsx: 'never' }],
49
- 'import/no-unresolved': 0,
50
- 'import/no-extraneous-dependencies': 0,
51
- 'react/jsx-curly-brace-presence': 0,
52
- 'react/jsx-filename-extension': ['warn', { extensions: ['.js', '.jsx'] }],
53
- 'react/require-default-props': 0,
54
- 'react/jsx-curly-spacing': 0,
55
- 'react/jsx-indent': ['error', 4],
56
- 'react/jsx-indent-props': 0,
57
- 'react/forbid-prop-types': 0,
58
- 'react/sort-comp': 0,
59
- 'react/prop-types': 0,
60
- 'react/jsx-props-no-spreading': 0,
61
- 'react/jsx-no-bind': 0
62
- },
2
+ root: true,
3
+ env: {
4
+ browser: true,
5
+ node: true,
6
+ es2021: true,
7
+ },
8
+ extends: [
9
+ "airbnb",
10
+ "airbnb/hooks",
11
+ "eslint:recommended",
12
+ "prettier",
13
+ "plugin:power-esrules/recommended",
14
+ ],
15
+ parser: "@babel/eslint-parser",
16
+ parserOptions: {
17
+ requireConfigFile: false,
18
+ },
19
+ globals: {
20
+ document: true,
21
+ localStorage: true,
22
+ Headers: true,
23
+ fetch: true,
24
+ },
25
+ rules: {
26
+ "no-continue": 0,
27
+ "consistent-return": 0,
28
+ "no-constant-condition": 0,
29
+ "arrow-parens": 0,
30
+ "no-else-return": 0,
31
+ "global-require": 0,
32
+ "max-len": ["error", { code: 120, ignorePattern: "^import\\W.*" }],
33
+ "linebreak-style": 0,
34
+ indent: 0,
35
+ "prefer-template": ["warn"],
36
+ "no-restricted-syntax": 0,
37
+ "no-prototype-builtins": 0,
38
+ "no-param-reassign": ["error", { props: false }],
39
+ "comma-dangle": ["error", "only-multiline"],
40
+ "no-undef": 0,
41
+ "no-shadow": 0,
42
+ "no-plusplus": 0,
43
+ "arrow-body-style": ["error", "as-needed"],
44
+ "default-param-last": 0,
45
+ "class-methods-use-this": ["error", { enforceForClassFields: false }],
46
+ "no-use-before-define": [
47
+ "error",
48
+ { functions: false, classes: true, variables: true },
49
+ ],
50
+ "no-useless-escape": "warn",
51
+ "no-console": ["error", { allow: ["warn", "error"] }],
52
+ "func-names": 0,
53
+ "jsx-a11y/anchor-is-valid": ["warn"],
54
+ "jsx-a11y/no-static-element-interactions": 0,
55
+ "jsx-a11y/click-events-have-key-events": ["warn"],
56
+ "import/prefer-default-export": 0,
57
+ "import/extensions": ["warn", { jsx: "never" }],
58
+ "import/no-unresolved": 0,
59
+ "import/no-extraneous-dependencies": 0,
60
+ "react/jsx-curly-brace-presence": 0,
61
+ "react/jsx-filename-extension": ["warn", { extensions: [".js", ".jsx"] }],
62
+ "react/require-default-props": 0,
63
+ "react/jsx-curly-spacing": 0,
64
+ "react/jsx-indent": ["error", 4],
65
+ "react/jsx-indent-props": 0,
66
+ "react/forbid-prop-types": 0,
67
+ "react/sort-comp": 0,
68
+ "react/prop-types": 0,
69
+ "react/jsx-props-no-spreading": 0,
70
+ "react/jsx-no-bind": 0,
71
+ },
63
72
  };