Skip to content

Commit

Permalink
Migrate style linting to Prettier (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBartusek authored Sep 21, 2024
1 parent 97f7143 commit c57b206
Show file tree
Hide file tree
Showing 31 changed files with 529 additions and 267 deletions.
55 changes: 27 additions & 28 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,45 +1,44 @@
module.exports = {
env: {
'browser': true,
'jest': true
browser: true,
jest: true,
},
extends: [ 'eslint:recommended', 'plugin:react/recommended', 'plugin:@typescript-eslint/recommended', 'plugin:storybook/recommended' ],
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:storybook/recommended',
'plugin:prettier/recommended',
],
overrides: [],
settings: {
react: {
version: 'detect'
}
version: 'detect',
},
},
ignorePatterns: [ '*.html' ],
ignorePatterns: ['*.html'],
parser: '@typescript-eslint/parser',
parserOptions: {
'ecmaVersion': '13',
'sourceType': 'module'
ecmaVersion: '13',
sourceType: 'module',
},
plugins: [ 'react', '@typescript-eslint' ],
plugins: ['react', '@typescript-eslint', 'prettier'],
rules: {
'brace-style': [ 'error', 'stroustrup', {
'allowSingleLine': true
} ],
'quotes': [ 'error', 'single' ],
'no-trailing-spaces': [ 'error' ],
'eol-last': [ 'error', 'always' ],
'curly': [ 'error', 'multi-line', 'consistent' ],
'indent': [ 'error', 'tab', {
'SwitchCase': 1,
'ignoredNodes': [ 'TemplateLiteral *' ]
} ],
'semi': [ 'error', 'always' ],
'no-multiple-empty-lines': [ 'error', {
'max': 1
} ],
'comma-dangle': [ 'error', 'never' ],
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'array-bracket-spacing': [ 'error', 'always' ],
'@typescript-eslint/no-use-before-define': 'off'
}
'@typescript-eslint/no-use-before-define': 'off',
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
useTabs: true,
singleQuote: true,
printWidth: 100,
singleAttributePerLine: true,
},
],
},
};
Loading

0 comments on commit c57b206

Please sign in to comment.