Skip to content

Commit

Permalink
Make all sorting case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
remcohaszing committed Aug 22, 2020
1 parent 5c1c26f commit 8ca55af
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion eslint-config/core/ecmascript-6.js
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion eslint-config/plugins/import.js
Expand Up @@ -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',
},
Expand Down
18 changes: 9 additions & 9 deletions eslint-config/utils/react.js
Expand Up @@ -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 }],
},

/**
Expand Down Expand Up @@ -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 }],
},

/**
Expand Down
2 changes: 1 addition & 1 deletion 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';
Expand Down
2 changes: 1 addition & 1 deletion 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.
Expand Down
@@ -1,4 +1,4 @@
import { VNode, h } from 'preact';
import { h, VNode } from 'preact';
import { useCallback, useState } from 'preact/hooks';

import { Button } from '../Button';
Expand Down
2 changes: 1 addition & 1 deletion 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 {
/**
Expand Down
@@ -1,4 +1,4 @@
import { VNode, h } from 'preact';
import { h, VNode } from 'preact';
import { useCallback, useState } from 'preact/hooks';

import { Item } from '../../types';
Expand Down
@@ -1,4 +1,4 @@
import { VNode, h } from 'preact';
import { h, VNode } from 'preact';
import { useCallback, useState } from 'preact/hooks';

import { Item } from '../../types';
Expand Down

0 comments on commit 8ca55af

Please sign in to comment.