eslint-config-arklint 1.10.2 → 2.0.0

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/.yarnrc.yml DELETED
@@ -1,3 +0,0 @@
1
- nodeLinker: node-modules
2
-
3
- yarnPath: .yarn/releases/yarn-4.1.0.cjs
@@ -1,30 +0,0 @@
1
- module.exports = {
2
- parserOptions: {
3
- sourceType: "module"
4
- },
5
- plugins: [
6
- "import",
7
- "sort-imports-es6-autofix"
8
- ],
9
- extends: [
10
- "plugin:import/recommended"
11
- ],
12
- rules: {
13
- "sort-imports-es6-autofix/sort-imports-es6": ["warn", {
14
- ignoreCase: true,
15
- memberSyntaxSortOrder: ["all", "multiple", "single", "none"]
16
- }],
17
- "import/no-named-as-default-member": "off",
18
- "import/no-anonymous-default-export": "off",
19
- "import/newline-after-import": ["warn", { count: 2, considerComments: true }],
20
- "import/order": ["warn", {
21
- "newlines-between": "always",
22
- "groups": [["type", "unknown", "builtin"], "external", ["internal", "parent", "index", "sibling"]],
23
- "warnOnUnassignedImports": true
24
- }],
25
- "import/first": "error",
26
- "import/no-amd": "error",
27
- "import/no-webpack-loader-syntax": "error",
28
- "import/no-unresolved": ["error", { commonjs: true }]
29
- }
30
- };
@@ -1,85 +0,0 @@
1
- module.exports = {
2
- plugins: [
3
- "jsdoc"
4
- ],
5
- extends: [
6
- "plugin:jsdoc/recommended"
7
- ],
8
- rules: {
9
- "jsdoc/require-template": "warn",
10
- "jsdoc/check-template-names": "warn",
11
- "jsdoc/require-returns": "off",
12
- "jsdoc/require-jsdoc": "off",
13
- "jsdoc/check-param-names": "warn",
14
- "jsdoc/check-indentation": ["warn", { excludeTags: ["import", "example"] }],
15
- "jsdoc/no-bad-blocks": "warn",
16
- "jsdoc/tag-lines": ["warn", "never"],
17
- "jsdoc/no-defaults": "off",
18
- "jsdoc/require-hyphen-before-param-description": ["warn", "always", {
19
- tags: {
20
- property: "always",
21
- template: "always",
22
- return: "never"
23
- }
24
- }],
25
- "jsdoc/check-line-alignment": ["warn", "never"],
26
- "jsdoc/match-name": ["warn", {
27
- match: [
28
- {
29
- allowName: "/^_?([A-Z][a-z]+)+$/",
30
- message: "The name should be written in PascalCase.",
31
- tags: ["typedef"]
32
- },
33
- {
34
- allowName: "/^([A-Z][a-z]+)+$/",
35
- message: "The name should be written in PascalCase.",
36
- tags: ["callback"]
37
- },
38
- {
39
- allowName: "/^[A-Z]{1}$/",
40
- message: "The name should be a single capital letter.",
41
- tags: ["template"]
42
- }
43
- ]
44
- }],
45
- "jsdoc/match-description": ["warn", {
46
- contexts: ["any"],
47
- mainDescription: {
48
- message: "The main description should be written in the third person, begin with a capital letter and end with a period.",
49
- match: "/^[A-Z][.^\\w]*s\\b.*\\.$/us"
50
- },
51
- matchDescription: "^[A-Z].*[^\\.]$",
52
- tags: {
53
- param: {
54
- message: "@param description should begin with a capital letter and not end with a period.",
55
- match: true
56
- },
57
- property: {
58
- message: "@property description should begin with a capital letter and not end with a period.",
59
- match: true
60
- },
61
- returns: {
62
- message: "@returns description should begin with a capital letter and not end with a period.",
63
- match: true
64
- },
65
- template: {
66
- message: "@template description should begin with a capital letter and not end with a period.",
67
- match: true
68
- }
69
- }
70
- }]
71
- },
72
- settings: {
73
- jsdoc: {
74
- maxLines: 2,
75
- mode: "typescript",
76
- preferredTypes: {
77
- "object<>": false,
78
- "Object<>": "Record<>",
79
- "Object": "object",
80
- ".<>": "<>",
81
- "*": "any"
82
- }
83
- }
84
- }
85
- };
@@ -1,73 +0,0 @@
1
- module.exports = {
2
- parserOptions: {
3
- ecmaFeatures: {
4
- jsx: true
5
- }
6
- },
7
- settings: {
8
- react: {
9
- version: "detect"
10
- }
11
- },
12
- plugins: [
13
- "react",
14
- "react-hooks",
15
- "jsx-a11y"
16
- ],
17
- extends: [
18
- "plugin:react/recommended",
19
- "plugin:react/jsx-runtime"
20
- ],
21
- rules: {
22
- "jsx-a11y/alt-text": "warn",
23
- "jsx-a11y/anchor-has-content": "warn",
24
- "jsx-a11y/anchor-is-valid": ["warn", {
25
- aspects: ["noHref", "invalidHref"]
26
- }],
27
- "jsx-a11y/aria-activedescendant-has-tabindex": "warn",
28
- "jsx-a11y/aria-props": "warn",
29
- "jsx-a11y/aria-proptypes": "warn",
30
- "jsx-a11y/aria-role": ["warn", { ignoreNonDOM: true }],
31
- "jsx-a11y/aria-unsupported-elements": "warn",
32
- "jsx-a11y/heading-has-content": "warn",
33
- "jsx-a11y/iframe-has-title": "warn",
34
- "jsx-a11y/img-redundant-alt": "warn",
35
- "jsx-a11y/no-access-key": "warn",
36
- "jsx-a11y/no-distracting-elements": "warn",
37
- "jsx-a11y/no-redundant-roles": "warn",
38
- "jsx-a11y/role-has-required-aria-props": "warn",
39
- "jsx-a11y/role-supports-aria-props": "warn",
40
- "jsx-a11y/scope": "warn",
41
- "react/display-name": "warn",
42
- "react-hooks/exhaustive-deps": "warn",
43
- "react-hooks/rules-of-hooks": "error",
44
- "react/jsx-curly-brace-presence": "warn",
45
- "react/jsx-first-prop-new-line": ["warn", "multiline"],
46
- "react/jsx-fragments": ["warn", "element"],
47
- "react/jsx-key": "warn",
48
- "react/jsx-max-props-per-line": ["warn", { maximum: { single: 3, multi: 1 } }],
49
- "react/jsx-no-comment-textnodes": "warn",
50
- "react/jsx-no-duplicate-props": "warn",
51
- "react/jsx-no-target-blank": "warn",
52
- "react/jsx-no-undef": "error",
53
- "react/jsx-pascal-case": "warn",
54
- "react/jsx-tag-spacing": ["warn", {
55
- closingSlash: "never",
56
- beforeSelfClosing: "always",
57
- afterOpening: "never",
58
- beforeClosing: "never"
59
- }],
60
- "react/jsx-uses-react": "warn",
61
- "react/jsx-uses-vars": "warn",
62
- "react/jsx-boolean-value": ["warn", "never"],
63
- "react/jsx-closing-bracket-location": "warn",
64
- "react/jsx-wrap-multilines": "warn",
65
- "react/jsx-props-no-spread-multi": "warn",
66
- "react/no-danger-with-children": "warn",
67
- "react/no-direct-mutation-state": "warn",
68
- "react/no-is-mounted": "warn",
69
- "react/prop-types": "off",
70
- "react/require-render-return": "error",
71
- "react/style-prop-object": "warn"
72
- }
73
- };
package/index.js DELETED
@@ -1,186 +0,0 @@
1
- require("@rushstack/eslint-patch/modern-module-resolution");
2
- const restrictedGlobals = require("confusing-browser-globals");
3
-
4
-
5
- module.exports = {
6
- env: {
7
- browser: true,
8
- commonjs: true,
9
- es6: true,
10
- node: true
11
- },
12
- parserOptions: {
13
- ecmaVersion: 2023
14
- },
15
- ignorePatterns: ["node_modules/"],
16
- plugins: ["@stylistic/js"],
17
- extends: [
18
- "eslint:recommended",
19
- "./extensions/import.js",
20
- "./extensions/jsdoc.js"
21
- ],
22
- rules: {
23
- "array-callback-return": "warn",
24
- "arrow-body-style": "warn",
25
- "camelcase": "warn",
26
- "default-case": ["warn", { commentPattern: "^no default$" }],
27
- "dot-notation": "warn",
28
- "eqeqeq": ["warn", "smart"],
29
- "getter-return": "warn",
30
- "no-array-constructor": "warn",
31
- "no-async-promise-executor": "off",
32
- "no-caller": "warn",
33
- "no-case-declarations": "off",
34
- "no-cond-assign": ["warn", "except-parens"],
35
- "no-const-assign": "warn",
36
- "no-control-regex": "warn",
37
- "no-delete-var": "warn",
38
- "no-dupe-args": "warn",
39
- "no-dupe-class-members": "warn",
40
- "no-dupe-keys": "warn",
41
- "no-duplicate-case": "warn",
42
- "no-duplicate-imports": "warn",
43
- "no-empty-character-class": "warn",
44
- "no-empty-pattern": "warn",
45
- "no-eval": "warn",
46
- "no-ex-assign": "warn",
47
- "no-extend-native": "warn",
48
- "no-extra-bind": "warn",
49
- "no-extra-label": "warn",
50
- "no-extra-semi": "off",
51
- "no-fallthrough": "warn",
52
- "no-func-assign": "warn",
53
- "no-global-assign": "warn",
54
- "no-implied-eval": "warn",
55
- "no-invalid-regexp": "warn",
56
- "no-iterator": "warn",
57
- "no-label-var": "warn",
58
- "no-labels": ["warn", {
59
- allowLoop: true,
60
- allowSwitch: false
61
- }],
62
- "no-lone-blocks": "warn",
63
- "no-loop-func": "warn",
64
- "no-multi-str": "warn",
65
- "no-new-func": "warn",
66
- "no-new-object": "warn",
67
- "no-new-symbol": "warn",
68
- "no-new-wrappers": "warn",
69
- "no-obj-calls": "warn",
70
- "no-octal-escape": "warn",
71
- "no-octal": "warn",
72
- "no-redeclare": "warn",
73
- "no-regex-spaces": "warn",
74
- "no-restricted-globals": ["error"].concat(restrictedGlobals),
75
- "no-restricted-syntax": ["warn", "WithStatement"],
76
- "no-script-url": "warn",
77
- "no-self-assign": "warn",
78
- "no-self-compare": "warn",
79
- "no-sequences": "warn",
80
- "no-shadow-restricted-names": "warn",
81
- "no-sparse-arrays": "warn",
82
- "no-template-curly-in-string": "warn",
83
- "no-this-before-super": "warn",
84
- "no-undef": "error",
85
- "no-unreachable": "warn",
86
- "no-unsafe-negation": "warn",
87
- "no-unused-expressions": ["error", {
88
- allowShortCircuit: true,
89
- allowTernary: true,
90
- allowTaggedTemplates: true
91
- }],
92
- "no-unused-labels": "warn",
93
- "no-unused-vars": "warn",
94
- "no-use-before-define": ["warn", {
95
- functions: false,
96
- classes: false,
97
- variables: false
98
- }],
99
- "no-useless-escape": "warn",
100
- "no-useless-computed-key": "warn",
101
- "no-useless-concat": "warn",
102
- "no-useless-constructor": "warn",
103
- "no-useless-rename": "warn",
104
- "no-var": "warn",
105
- "no-with": "warn",
106
- "object-shorthand": ["warn", "always"],
107
- "prefer-arrow-callback": "warn",
108
- "require-await": "warn",
109
- "require-yield": "warn",
110
- "strict": ["warn", "never"],
111
- "unicode-bom": ["warn", "never"],
112
- "use-isnan": "warn",
113
- "valid-typeof": "warn",
114
- "@stylistic/js/array-bracket-newline": ["warn", "consistent"],
115
- "@stylistic/js/array-bracket-spacing": "warn",
116
- "@stylistic/js/array-element-newline": ["warn", "consistent"],
117
- "@stylistic/js/arrow-parens": "warn",
118
- "@stylistic/js/arrow-spacing": "warn",
119
- "@stylistic/js/block-spacing": "warn",
120
- "@stylistic/js/brace-style": ["warn", "1tbs", {
121
- allowSingleLine: true
122
- }],
123
- "@stylistic/js/comma-dangle": ["warn", "never"],
124
- "@stylistic/js/comma-spacing": "warn",
125
- "@stylistic/js/comma-style": "warn",
126
- "@stylistic/js/computed-property-spacing": "warn",
127
- "@stylistic/js/dot-location": ["warn", "property"],
128
- "@stylistic/js/eol-last": ["warn", "never"],
129
- "@stylistic/js/function-call-spacing": "warn",
130
- "@stylistic/js/function-call-argument-newline": ["warn", "consistent"],
131
- "@stylistic/js/function-paren-newline": ["warn", "consistent"],
132
- "@stylistic/js/implicit-arrow-linebreak": "warn",
133
- "@stylistic/js/indent": ["warn", "tab", {
134
- SwitchCase: 1,
135
- ignoreComments: true
136
- }],
137
- "@stylistic/js/key-spacing": "warn",
138
- "@stylistic/js/keyword-spacing": "warn",
139
- "@stylistic/js/new-parens": "warn",
140
- "@stylistic/js/no-confusing-arrow": "warn",
141
- "@stylistic/js/no-extra-semi": "warn",
142
- "@stylistic/js/no-floating-decimal": "warn",
143
- "@stylistic/js/no-mixed-operators": "warn",
144
- "@stylistic/js/no-multi-spaces": "warn",
145
- "@stylistic/js/no-multiple-empty-lines": ["warn", {
146
- max: 2,
147
- maxBOF: 0,
148
- maxEOF: 0
149
- }],
150
- "@stylistic/js/no-trailing-spaces": "warn",
151
- "@stylistic/js/no-whitespace-before-property": "warn",
152
- "@stylistic/js/nonblock-statement-body-position": "warn",
153
- "@stylistic/js/object-curly-newline": "warn",
154
- "@stylistic/js/object-curly-spacing": ["warn", "always"],
155
- "@stylistic/js/operator-linebreak": ["warn", "after", {
156
- overrides: {
157
- "?": "ignore",
158
- ":": "ignore",
159
- "||": "ignore",
160
- "&&": "ignore"
161
- }
162
- }],
163
- "@stylistic/js/padding-line-between-statements": [
164
- "warn",
165
- { blankLine: "always", prev: "default", next: "*" },
166
- { blankLine: "always", prev: "*", next: "switch" }
167
- ],
168
- "@stylistic/js/quote-props": ["warn", "consistent-as-needed"],
169
- "@stylistic/js/quotes": ["warn", "double"],
170
- "@stylistic/js/rest-spread-spacing": "warn",
171
- "@stylistic/js/semi": "warn",
172
- "@stylistic/js/semi-spacing": "warn",
173
- "@stylistic/js/semi-style": "warn",
174
- "@stylistic/js/space-before-blocks": "warn",
175
- "@stylistic/js/space-before-function-paren": ["warn", {
176
- anonymous: "always",
177
- named: "never",
178
- asyncArrow: "always"
179
- }],
180
- "@stylistic/js/space-in-parens": "warn",
181
- "@stylistic/js/space-infix-ops": "warn",
182
- "@stylistic/js/space-unary-ops": "warn",
183
- "@stylistic/js/spaced-comment": "warn",
184
- "@stylistic/js/template-curly-spacing": "warn"
185
- }
186
- };