Skip to content

Commit

Permalink
style: fix tabbing to use 4 spaces (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlee11 authored Oct 25, 2024
1 parent b29c499 commit 5d93ab3
Show file tree
Hide file tree
Showing 35 changed files with 6,417 additions and 6,422 deletions.
225 changes: 111 additions & 114 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,116 +1,113 @@
module.exports = {
'env': {
'browser': true,
'es2021': true
},
'extends': [
'eslint:recommended',
'plugin:jsonc/recommended-with-jsonc'
],
'overrides': [
{
'env': {
'node': true
},
'files': [
'.eslintrc.{js,cjs}'
],
'parserOptions': {
'sourceType': 'script'
}
},
{
'files': ['*.json', '*.json5', '*.jsonc'],
'parser': 'jsonc-eslint-parser',
},
{
'files': ['*.ts', '*.tsx'],
'plugins': [
'import'
],
'extends': [
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
],
'parserOptions': {
'project': ['./tsconfig.json'],
},
'settings': {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx']
},
'import/resolver': {
'typescript': {
'alwaysTryTypes': true,
'project': './tsconfig.json'
}
}
},
'rules': {
'@typescript-eslint/naming-convention': [
'error',
{
selector: 'variable',
format: ['camelCase', 'PascalCase', 'UPPER_CASE']
},
{
selector: 'typeProperty',
format: ['camelCase', 'PascalCase', 'UPPER_CASE']
}
],
'@typescript-eslint/no-unsafe-assignment': [
'off'
],
'import/named': 'error',
'@typescript-eslint/type-annotation-spacing': 'error',
'no-multiple-empty-lines': [
'error',
{ max: 1 }
],
'@typescript-eslint/member-delimiter-style': [
'error',
{
'multiline': {
'delimiter': 'semi',
'requireLast': true
},
'singleline': {
'delimiter': 'semi',
'requireLast': false
}
}
]
}
}
],
'parser': '@typescript-eslint/parser',
'parserOptions': {
'ecmaVersion': 'latest',
'sourceType': 'module',
},
'plugins': [
'@typescript-eslint',
'@stylistic/js',
],
'ignorePatterns': ['**/docs/*', '**/lib/*', '**/bin/*'],
'rules': {
'indent': [
'error',
'tab'
],
'quotes': [
'error',
'single'
],
'semi': [
'error',
'always'
],
'no-console': [
'error'
],
'@stylistic/js/no-trailing-spaces': [
'error'
],
}
'env': {
'browser': true,
'es2021': true
},
'extends': [
'eslint:recommended',
'plugin:jsonc/recommended-with-jsonc'
],
'overrides': [
{
'env': {
'node': true
},
'files': [
'.eslintrc.{js,cjs}'
],
'parserOptions': {
'sourceType': 'script'
}
},
{
'files': ['*.json', '*.json5', '*.jsonc'],
'parser': 'jsonc-eslint-parser',
},
{
'files': ['*.ts', '*.tsx'],
'plugins': [
'import'
],
'extends': [
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
],
'parserOptions': {
'project': ['./tsconfig.json'],
},
'settings': {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx']
},
'import/resolver': {
'typescript': {
'alwaysTryTypes': true,
'project': './tsconfig.json'
}
}
},
'rules': {
'@typescript-eslint/naming-convention': [
'error',
{
selector: 'variable',
format: ['camelCase', 'PascalCase', 'UPPER_CASE']
},
{
selector: 'typeProperty',
format: ['camelCase', 'PascalCase', 'UPPER_CASE']
}
],
'@typescript-eslint/no-unsafe-assignment': [
'off'
],
'import/named': 'error',
'@typescript-eslint/type-annotation-spacing': 'error',
'no-multiple-empty-lines': [
'error',
{ max: 1 }
],
'@typescript-eslint/member-delimiter-style': [
'error',
{
'multiline': {
'delimiter': 'semi',
'requireLast': true
},
'singleline': {
'delimiter': 'semi',
'requireLast': false
}
}
]
}
}
],
'parser': '@typescript-eslint/parser',
'parserOptions': {
'ecmaVersion': 'latest',
'sourceType': 'module',
},
'plugins': [
'@typescript-eslint',
'@stylistic/js',
],
'ignorePatterns': ['**/docs/*', '**/lib/*', '**/bin/*'],
'rules': {
'quotes': [
'error',
'single'
],
'semi': [
'error',
'always'
],
'no-console': [
'error'
],
'@stylistic/js/no-trailing-spaces': [
'error'
],
'@stylistic/js/indent': ['error', 4],
}
};
Loading

0 comments on commit 5d93ab3

Please sign in to comment.