-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from fixpoint/up-deps
Upgrade dependencies
- Loading branch information
Showing
8 changed files
with
53,671 additions
and
35,151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,66 @@ | ||
module.exports = { | ||
env: { | ||
es6: true, | ||
node: true | ||
node: true, | ||
}, | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:prettier/recommended", | ||
"prettier", | ||
"prettier/@typescript-eslint" | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:prettier/recommended', | ||
'prettier', | ||
], | ||
plugins: ["@typescript-eslint", "prettier"], | ||
plugins: ['@typescript-eslint', 'prettier'], | ||
rules: { | ||
// I agree with https://github.com/palantir/tslint/issues/3265#issuecomment-333285962 | ||
"@typescript-eslint/interface-name-prefix": "off", | ||
'@typescript-eslint/interface-name-prefix': 'off', | ||
// I agree with https://github.com/typescript-eslint/typescript-eslint/issues/201 | ||
"@typescript-eslint/explicit-member-accessibility": [ | ||
"error", | ||
{ accessibility: "no-public" } | ||
'@typescript-eslint/explicit-member-accessibility': [ | ||
'error', | ||
{ accessibility: 'no-public' }, | ||
], | ||
// Empty interface is often used for standardize interface | ||
"@typescript-eslint/no-empty-interface": "off", | ||
'@typescript-eslint/no-empty-interface': 'off', | ||
// Strict type is ideal but we are writing code for application but for perfect type system | ||
// and I think those rules are too strict sometime. | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
// ESLint does not have TSLint's 'ordered-imports' which follows TypeScript's Organise Import | ||
// specification so use ESLint's 'sort-imports' without DeclarationSort to partially mimic | ||
// the spec for now. | ||
// See https://github.com/typescript-eslint/typescript-eslint/pull/256 | ||
"sort-imports": [ | ||
"warn", | ||
'sort-imports': [ | ||
'warn', | ||
{ | ||
ignoreDeclarationSort: true | ||
} | ||
] | ||
ignoreDeclarationSort: true, | ||
}, | ||
], | ||
}, | ||
overrides: [ | ||
{ | ||
files: ["*.ts", "*.tsx"], | ||
files: ['*.ts', '*.tsx'], | ||
rules: { | ||
"no-dupe-class-members": "off" | ||
} | ||
'no-dupe-class-members': 'off', | ||
}, | ||
}, | ||
{ | ||
files: [ | ||
"*.spec.ts", | ||
"*.test.ts", | ||
"*.spec.tsx", | ||
"*.test.tsx", | ||
"*.spec.js", | ||
"*.test.js", | ||
"*.spec.jsx", | ||
"*.test.jsx", | ||
"*/__tests__/*.ts", | ||
"*/__tests__/*.tsx", | ||
"*/__tests__/*.js", | ||
"*/__tests__/*.jsx" | ||
'*.spec.ts', | ||
'*.test.ts', | ||
'*.spec.tsx', | ||
'*.test.tsx', | ||
'*.spec.js', | ||
'*.test.js', | ||
'*.spec.jsx', | ||
'*.test.jsx', | ||
'*/__tests__/*.ts', | ||
'*/__tests__/*.tsx', | ||
'*/__tests__/*.js', | ||
'*/__tests__/*.jsx', | ||
], | ||
env: { | ||
browser: true, | ||
jest: true | ||
} | ||
} | ||
] | ||
jest: true, | ||
}, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.