Skip to content

Commit

Permalink
feat: upgrade parser & plugin to v2.18.0
Browse files Browse the repository at this point in the history
BREAKING CHANGE: new rule @typescript-eslint/prefer-as-const
typescript-eslint/typescript-eslint#1431

Closes #218.
  • Loading branch information
mightyiam committed Feb 11, 2020
1 parent 11a16f4 commit fe2242a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -55,7 +55,7 @@
"TypeScript"
],
"dependencies": {
"@typescript-eslint/parser": "^2.17.0",
"@typescript-eslint/parser": "^2.18.0",
"eslint-config-standard": "^14.1.0"
},
"peerDependencies": {
Expand All @@ -64,14 +64,14 @@
"eslint-plugin-node": ">=9.1.0",
"eslint-plugin-promise": ">=4.2.1",
"eslint-plugin-standard": ">=4.0.0",
"@typescript-eslint/eslint-plugin": ">=2.17.0"
"@typescript-eslint/eslint-plugin": ">=2.18.0"
},
"devDependencies": {
"@commitlint/cli": "^8.2.0",
"@commitlint/config-conventional": "^8.2.0",
"@commitlint/travis-cli": "^8.2.0",
"@types/node": "^13.1.0",
"@typescript-eslint/eslint-plugin": "^2.17.0",
"@typescript-eslint/eslint-plugin": "^2.18.0",
"ava": "^3.1.0",
"editorconfig-checker": "^3.0.3",
"eslint": "^6.7.2",
Expand Down
2 changes: 2 additions & 0 deletions src/index.test.ts
Expand Up @@ -33,6 +33,7 @@ test('export', (t): void => {
rules: {
'brace-style': 'off',
camelcase: 'off',
'comma-spacing': 'off',
'default-param-last': 'off',
indent: 'off',
'no-array-constructor': 'off',
Expand All @@ -49,6 +50,7 @@ test('export', (t): void => {
'@typescript-eslint/array-type': ['error', { default: 'array-simple' }],
'@typescript-eslint/brace-style': ['error', '1tbs', { allowSingleLine: true }],
'@typescript-eslint/camelcase': ['error', { properties: 'never', genericType: 'always' }],
'@typescript-eslint/comma-spacing': ['error', { before: false, after: true }],
'@typescript-eslint/consistent-type-assertions': [
'error',
{
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
@@ -1,6 +1,7 @@
import { rules as standardRules } from 'eslint-config-standard/eslintrc.json'

const equivalents = [
'comma-spacing',
'brace-style',
'indent',
'no-array-constructor',
Expand Down

0 comments on commit fe2242a

Please sign in to comment.