Skip to content

Commit

Permalink
remove prettier, rely on eslintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
UnchartedBull committed Jun 22, 2020
1 parent 9990527 commit 97fdbc1
Show file tree
Hide file tree
Showing 45 changed files with 3,917 additions and 4,027 deletions.
19 changes: 0 additions & 19 deletions .editorconfig

This file was deleted.

87 changes: 44 additions & 43 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,45 +1,46 @@
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'plugin:@typescript-eslint/recommended',
'prettier',
'prettier/@typescript-eslint',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript'
],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
root: true,
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "prettier", "import", "simple-import-sort"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
],
parserOptions: {
ecmaVersion: 2020,
sourceType: "module",
},
rules: {
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-use-before-define": "off",
"prettier/prettier": "warn",
"import/no-unresolved": "off",
camelcase: "warn",
"simple-import-sort/sort": "warn",
"sort-imports": "off",
"import/first": "warn",
"import/newline-after-import": "warn",
"import/no-duplicates": "warn",
"import/no-absolute-path": "warn",
"import/no-unused-modules": "warn",
"import/no-deprecated": "warn",
"import/no-self-import": "error",
"max-len": ["warn", { code: 170, tabWidth: 2, ignoreUrls: true }],
},
overrides: [
{
files: "**/*.ts",
rules: {
"import/order": [
"off",
{
"newlines-between": "always",
},
],
},
},
rules: {
'@typescript-eslint/no-parameter-properties': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'prettier/prettier': 'warn',
'import/no-unresolved': 'off',
'camelcase': 'warn',
'simple-import-sort/sort': 'warn',
'sort-imports': 'off',
"import/first": "warn",
"import/newline-after-import": "warn",
"import/no-duplicates": "warn",
'import/no-absolute-path': 'warn',
'import/no-unused-modules': 'warn',
'import/no-deprecated': 'warn',
'import/no-self-import': 'error'
},
plugins: [
'@typescript-eslint',
'prettier',
'import',
'simple-import-sort'
],
overrides: [{
'files': '**/*.ts',
'rules': {
'import/order': ['off', {
'newlines-between': 'always'
}],
}
}]
}
],
};
11 changes: 0 additions & 11 deletions .prettierrc.js

This file was deleted.

Loading

0 comments on commit 97fdbc1

Please sign in to comment.