diff --git a/eslint-config/core/ecmascript-6.js b/eslint-config/core/ecmascript-6.js index 3f09971..a41caf1 100644 --- a/eslint-config/core/ecmascript-6.js +++ b/eslint-config/core/ecmascript-6.js @@ -155,7 +155,7 @@ module.exports = { /** * https://eslint.org/docs/rules/sort-imports */ - 'sort-imports': ['error', { ignoreDeclarationSort: true }], + 'sort-imports': ['error', { ignoreCase: true, ignoreDeclarationSort: true }], /** * https://eslint.org/docs/rules/symbol-description diff --git a/eslint-config/plugins/import.js b/eslint-config/plugins/import.js index cdf70f5..84a0817 100644 --- a/eslint-config/plugins/import.js +++ b/eslint-config/plugins/import.js @@ -243,7 +243,7 @@ module.exports = { 'import/order': [ 'error', { - alphabetize: { order: 'asc', caseInsensitive: false }, + alphabetize: { order: 'asc', caseInsensitive: true }, groups: ['builtin', ['external', 'internal'], ['parent', 'sibling', 'index'], 'object'], 'newlines-between': 'always', }, diff --git a/eslint-config/utils/react.js b/eslint-config/utils/react.js index d97f4d6..102e77a 100644 --- a/eslint-config/utils/react.js +++ b/eslint-config/utils/react.js @@ -397,18 +397,18 @@ module.exports = { * https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-sort-default-props.md */ 'react/jsx-sort-default-props': { - jsx: 'off', - preact: 'error', - react: 'error', + jsx: ['off', { ignoreCase: true }], + preact: ['error', { ignoreCase: true }], + react: ['error', { ignoreCase: true }], }, /** * https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-sort-props.md */ 'react/jsx-sort-props': { - jsx: 'error', - preact: 'error', - react: 'error', + jsx: ['error', { ignoreCase: true }], + preact: ['error', { ignoreCase: true }], + react: ['error', { ignoreCase: true }], }, /** @@ -781,9 +781,9 @@ module.exports = { * https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/sort-prop-types.md */ 'react/sort-prop-types': { - jsx: 'off', - preact: 'error', - react: 'error', + jsx: ['off', { ignoreCase: true }], + preact: ['error', { ignoreCase: true }], + react: ['error', { ignoreCase: true }], }, /** diff --git a/examples/typescript-preact/src/components/App/index.tsx b/examples/typescript-preact/src/components/App/index.tsx index 7ab883d..8909a95 100644 --- a/examples/typescript-preact/src/components/App/index.tsx +++ b/examples/typescript-preact/src/components/App/index.tsx @@ -1,4 +1,4 @@ -import { VNode, h } from 'preact'; +import { h, VNode } from 'preact'; import { ErrorHandler } from '../ErrorHandler'; import { ItemList } from '../ItemList'; diff --git a/examples/typescript-preact/src/components/Button/index.tsx b/examples/typescript-preact/src/components/Button/index.tsx index 02430cd..ee15529 100644 --- a/examples/typescript-preact/src/components/Button/index.tsx +++ b/examples/typescript-preact/src/components/Button/index.tsx @@ -1,5 +1,5 @@ import classNames from 'classnames'; -import { VNode, h } from 'preact'; +import { h, VNode } from 'preact'; /** * Render a Bylma styled button element. diff --git a/examples/typescript-preact/src/components/ErrorButton/index.tsx b/examples/typescript-preact/src/components/ErrorButton/index.tsx index 41e9826..ccf9fde 100644 --- a/examples/typescript-preact/src/components/ErrorButton/index.tsx +++ b/examples/typescript-preact/src/components/ErrorButton/index.tsx @@ -1,4 +1,4 @@ -import { VNode, h } from 'preact'; +import { h, VNode } from 'preact'; import { useCallback, useState } from 'preact/hooks'; import { Button } from '../Button'; diff --git a/examples/typescript-preact/src/components/Input/index.tsx b/examples/typescript-preact/src/components/Input/index.tsx index 0a699ae..f3dc449 100644 --- a/examples/typescript-preact/src/components/Input/index.tsx +++ b/examples/typescript-preact/src/components/Input/index.tsx @@ -1,4 +1,4 @@ -import { ComponentChild, VNode, h } from 'preact'; +import { ComponentChild, h, VNode } from 'preact'; interface InputProps { /** diff --git a/examples/typescript-preact/src/components/ItemForm/index.tsx b/examples/typescript-preact/src/components/ItemForm/index.tsx index ec94f83..bb66889 100644 --- a/examples/typescript-preact/src/components/ItemForm/index.tsx +++ b/examples/typescript-preact/src/components/ItemForm/index.tsx @@ -1,4 +1,4 @@ -import { VNode, h } from 'preact'; +import { h, VNode } from 'preact'; import { useCallback, useState } from 'preact/hooks'; import { Item } from '../../types'; diff --git a/examples/typescript-preact/src/components/ItemList/index.tsx b/examples/typescript-preact/src/components/ItemList/index.tsx index 0c4fa85..a092b49 100644 --- a/examples/typescript-preact/src/components/ItemList/index.tsx +++ b/examples/typescript-preact/src/components/ItemList/index.tsx @@ -1,4 +1,4 @@ -import { VNode, h } from 'preact'; +import { h, VNode } from 'preact'; import { useCallback, useState } from 'preact/hooks'; import { Item } from '../../types';