@eslint-sukka/react 4.1.7 → 4.1.9-beta.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/dist/index.cjs +31 -1
- package/dist/index.mjs +31 -1
- package/package.json +20 -9
- package/dist/index.js +0 -1
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-sukka/react",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.9-beta.0",
|
|
4
4
|
"description": "Sukka's ESLint config",
|
|
5
5
|
"homepage": "https://github.com/SukkaW/eslint-config-sukka",
|
|
6
6
|
"repository": {
|
|
7
7
|
"url": "https://github.com/SukkaW/eslint-config-sukka",
|
|
8
8
|
"directory": "packages/react"
|
|
9
9
|
},
|
|
10
|
-
"main": "dist/index.
|
|
10
|
+
"main": "dist/index.cjs",
|
|
11
11
|
"module": "dist/index.mjs",
|
|
12
12
|
"types": "dist/index.d.ts",
|
|
13
13
|
"files": [
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"types": "./dist/index.d.ts",
|
|
19
19
|
"import": "./dist/index.mjs",
|
|
20
20
|
"require": "./dist/index.cjs",
|
|
21
|
-
"default": "./dist/index.
|
|
21
|
+
"default": "./dist/index.cjs"
|
|
22
22
|
},
|
|
23
23
|
"./package.json": "./package.json"
|
|
24
24
|
},
|
|
@@ -28,16 +28,27 @@
|
|
|
28
28
|
"author": "Sukka <https://skk.moe>",
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
31
|
+
"@nolyfill/array-includes": "^1.0.24",
|
|
32
|
+
"@nolyfill/array.prototype.flat": "^1.0.24",
|
|
33
|
+
"@nolyfill/array.prototype.flatmap": "^1.0.24",
|
|
34
|
+
"@nolyfill/array.prototype.tosorted": "^1.0.24",
|
|
35
|
+
"@nolyfill/es-iterator-helpers": "^1.0.21",
|
|
36
|
+
"@nolyfill/object.assign": "^1.0.24",
|
|
37
|
+
"@nolyfill/object.entries": "^1.0.24",
|
|
38
|
+
"@nolyfill/object.fromentries": "^1.0.24",
|
|
39
|
+
"@nolyfill/object.hasown": "^1.0.24",
|
|
40
|
+
"@nolyfill/object.values": "^1.0.24",
|
|
41
|
+
"@nolyfill/string.prototype.matchall": "^1.0.24",
|
|
42
|
+
"@stylistic/eslint-plugin-jsx": "^1.1.0",
|
|
43
|
+
"eslint-plugin-import": "npm:eslint-plugin-i@^2.29.0",
|
|
35
44
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
36
45
|
"globals": "^13.23.0",
|
|
37
|
-
"@eslint-sukka/shared": "4.1.
|
|
46
|
+
"@eslint-sukka/shared": "4.1.9-beta.0"
|
|
38
47
|
},
|
|
39
48
|
"devDependencies": {
|
|
40
|
-
"
|
|
49
|
+
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
50
|
+
"eslint-plugin-react": "^7.33.2",
|
|
51
|
+
"@eslint-sukka/rollup-config": "^4.1.9-beta.0"
|
|
41
52
|
},
|
|
42
53
|
"scripts": {
|
|
43
54
|
"build": "rollup -c rollup.config.ts --configPlugin swc3"
|
package/dist/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("@eslint-sukka/shared"),r=require("eslint-plugin-i"),t=require("eslint-plugin-react"),s=require("eslint-plugin-jsx-a11y"),n=require("eslint-plugin-react-hooks"),o=require("@stylistic/eslint-plugin-jsx"),a=require("globals");const i=[".js",".jsx",".mjs",".cjs"];exports.react=(l={})=>[{files:[e.constants.GLOB_TS,e.constants.GLOB_TSX,e.constants.GLOB_JS,e.constants.GLOB_JSX],plugins:{i:r,import:r,react:t,"jsx-a11y":s,"react-hooks":n,"@stylistic/jsx":o},settings:{"import/extensions":i,"import/parsers":{espree:i},"import/resolver":{node:{extensions:i}},react:{version:"detect"}},languageOptions:{sourceType:"module",parserOptions:{ecmaFeatures:{jsx:!0},jsxPragma:void 0},globals:a.browser},rules:{...t.configs.recommended.rules,...t.configs["jsx-runtime"].rules,...n.configs.recommended.rules,"react-hooks/exhaustive-deps":["warn",{additionalHooks:l.additionalHooks??"(useIsomorphicLayoutEffect|useSukkaManyOtherCustomEffectHookExample)"}],"react/react-in-jsx-scope":"off","react/jsx-filename-extension":["warn",{extensions:[".jsx",".tsx"]}],"react/prop-types":"off","react/display-name":["off",{ignoreTranspilerName:!1}],"react/no-unknown-property":["error",{ignore:["css","jsx"]}],"react/jsx-boolean-value":["error","never",{always:[]}],"@stylistic/jsx/jsx-curly-spacing":["error","never",{allowMultiline:!0}],"react/jsx-handler-names":["off",{eventHandlerPrefix:"handle",eventHandlerPropPrefix:"on"}],"@stylistic/jsx/jsx-indent-props":["error",2],"@stylistic/jsx/jsx-max-props-per-line":["error",{maximum:1,when:"multiline"}],"react/jsx-no-bind":["error",{ignoreRefs:!0,allowArrowFunctions:!0,allowFunctions:!1,allowBind:!1,ignoreDOMComponents:!0}],"react/jsx-pascal-case":["error",{allowAllCaps:!0,ignore:[]}],"react/prefer-stateless-function":["error",{ignorePureComponents:!0}],"react/require-render-return":"error","react/self-closing-comp":"error","react/sort-comp":["error",{order:["static-variables","static-methods","instance-variables","lifecycle","/^handle.+$/","/^on.+$/","getters","setters","/^(get|set)(?!(InitialState$|DefaultProps$|ChildContext$)).+$/","instance-methods","everything-else","rendering"],groups:{lifecycle:["displayName","propTypes","contextTypes","childContextTypes","mixins","statics","defaultProps","constructor","getDefaultProps","getInitialState","state","getChildContext","getDerivedStateFromProps","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","UNSAFE_componentWillUpdate","getSnapshotBeforeUpdate","componentDidUpdate","componentDidCatch","componentWillUnmount"],rendering:["/^render.+$/","render"]}}],"@stylistic/jsx/jsx-wrap-multilines":["error",{declaration:"parens-new-line",assignment:"parens-new-line",return:"parens-new-line",arrow:"parens-new-line",condition:"ignore",logical:"ignore",prop:"ignore"}],"@stylistic/jsx/jsx-first-prop-new-line":["error","multiline-multiprop"],"@stylistic/jsx/jsx-equals-spacing":["error","never"],"@stylistic/jsx/jsx-indent":["error",2],"react/style-prop-object":"error","@stylistic/jsx/jsx-tag-spacing":["error",{closingSlash:"never",beforeSelfClosing:"always",afterOpening:"never",beforeClosing:"never"}],"react/no-array-index-key":"off","react/void-dom-elements-no-children":"error","react/no-unused-state":"error","@stylistic/jsx/jsx-curly-brace-presence":["error",{props:"never",children:"never"}],"react/no-access-state-in-setstate":"error","react/no-this-in-sfc":"error","@stylistic/jsx/jsx-props-no-multi-spaces":"error","react/jsx-fragments":["error","syntax"],"@stylistic/jsx/jsx-curly-newline":["error",{multiline:"consistent",singleline:"consistent"}],"react/jsx-no-script-url":["error",[{name:"Link",props:["to","href"]},{name:"NextLink",props:["href"]}]],"react/jsx-key":["warn",{checkFragmentShorthand:!0,checkKeyMustBeforeSpread:!0,warnOnDuplicates:!0}],"react/jsx-uses-vars":"error","react/jsx-no-useless-fragment":"error","react/jsx-no-constructed-context-values":"error","react/no-unstable-nested-components":"error","react/no-unused-class-component-methods":"error","react/hook-use-state":"off","react/iframe-missing-sandbox":"warn","react/jsx-no-leaked-render":"off","react/no-object-type-as-default-prop":"warn","react/button-has-type":"error","react/no-namespace":"error","class-methods-use-this":["error",{exceptMethods:["render","getInitialState","getDefaultProps","getChildContext","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount","componentDidCatch","getSnapshotBeforeUpdate"]}],"jsx-a11y/alt-text":["warn",{elements:["img"],img:["Image"]}],"jsx-a11y/aria-props":"warn","jsx-a11y/aria-proptypes":"warn","jsx-a11y/aria-unsupported-elements":"warn","jsx-a11y/role-has-required-aria-props":"warn","jsx-a11y/role-supports-aria-props":"warn"}}];
|