@eslint-sukka/react 4.0.5 → 4.1.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 CHANGED
@@ -1 +1 @@
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/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],"@stylistic/jsx/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"}}];
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],"@stylistic/jsx/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"}}];
package/dist/index.js CHANGED
@@ -1 +1 @@
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/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],"@stylistic/jsx/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"}}];
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],"@stylistic/jsx/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"}}];
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import{constants as e}from"@eslint-sukka/shared";import r from"eslint-plugin-i";import t from"eslint-plugin-react";import o from"eslint-plugin-jsx-a11y";import s from"eslint-plugin-react-hooks";import n from"@stylistic/eslint-plugin-jsx";import a from"globals";let i=[".js",".jsx",".mjs",".cjs"],l=(l={})=>[{files:[e.GLOB_TS,e.GLOB_TSX,e.GLOB_JS,e.GLOB_JSX],plugins:{i:r,import:r,react:t,"jsx-a11y":o,"react-hooks":s,"@stylistic/jsx":n},settings:{"import/extensions":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,...s.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],"@stylistic/jsx/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"}}];export{l as react};
1
+ import{constants as e}from"@eslint-sukka/shared";import r from"eslint-plugin-i";import t from"eslint-plugin-react";import o from"eslint-plugin-jsx-a11y";import s from"eslint-plugin-react-hooks";import n from"@stylistic/eslint-plugin-jsx";import a from"globals";let i=[".js",".jsx",".mjs",".cjs"],l=(l={})=>[{files:[e.GLOB_TS,e.GLOB_TSX,e.GLOB_JS,e.GLOB_JSX],plugins:{i:r,import:r,react:t,"jsx-a11y":o,"react-hooks":s,"@stylistic/jsx":n},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,...s.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],"@stylistic/jsx/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"}}];export{l as react};
package/package.json CHANGED
@@ -1,20 +1,18 @@
1
1
  {
2
2
  "name": "@eslint-sukka/react",
3
- "version": "4.0.5",
3
+ "version": "4.1.0",
4
4
  "description": "Sukka's ESLint config",
5
- "author": "Sukka <https://skk.moe>",
6
- "license": "MIT",
7
5
  "homepage": "https://github.com/SukkaW/eslint-config-sukka",
8
6
  "repository": {
9
7
  "url": "https://github.com/SukkaW/eslint-config-sukka",
10
8
  "directory": "packages/react"
11
9
  },
12
- "keywords": [
13
- "eslint-config"
14
- ],
15
10
  "main": "dist/index.js",
16
11
  "module": "dist/index.mjs",
17
12
  "types": "dist/index.d.ts",
13
+ "files": [
14
+ "dist"
15
+ ],
18
16
  "exports": {
19
17
  ".": {
20
18
  "types": "./dist/index.d.ts",
@@ -24,19 +22,20 @@
24
22
  },
25
23
  "./package.json": "./package.json"
26
24
  },
27
- "files": [
28
- "dist"
25
+ "keywords": [
26
+ "eslint-config"
29
27
  ],
28
+ "author": "Sukka <https://skk.moe>",
29
+ "license": "MIT",
30
30
  "dependencies": {
31
+ "@stylistic/eslint-plugin-jsx": "^0.0.11",
31
32
  "eslint-plugin-i": "^2.28.1",
32
33
  "eslint-plugin-jsx-a11y": "^6.7.1",
33
34
  "eslint-plugin-react": "^7.33.2",
34
35
  "eslint-plugin-react-hooks": "^4.6.0",
35
36
  "globals": "^13.23.0",
36
- "@eslint-sukka/shared": "4.0.5"
37
- },
38
- "devDependencies": {
39
- "@stylistic/eslint-plugin-jsx": "^0.0.11"
37
+ "@eslint-sukka/rollup-config": "4.1.0",
38
+ "@eslint-sukka/shared": "4.1.0"
40
39
  },
41
40
  "scripts": {
42
41
  "build": "rollup -c rollup.config.ts --configPlugin swc3"