Skip to content

Commit

Permalink
Remove lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
rekmarks committed Apr 15, 2021
1 parent 5f3d819 commit e5090fb
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 533 deletions.
20 changes: 17 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
module.exports = {
root: true,
extends: ['@metamask/eslint-config', '@metamask/eslint-config-nodejs'],
ignorePatterns: ['!.eslintrc.js', '!jest.config.js', 'node_modules', 'dist', 'docs', 'coverage', '*.d.ts'],
ignorePatterns: [
'!.eslintrc.js',
'!jest.config.js',
'node_modules',
'dist',
'docs',
'coverage',
'*.d.ts',
],
overrides: [
{
files: ['*.test.ts', '*.test.js'],
Expand All @@ -15,7 +23,8 @@ module.exports = {
// 'toBeFalsy': 'Avoid `toBeFalsy`',
// 'toBeTruthy': 'Avoid `toBeTruthy`',
toMatchSnapshot: 'Use `toMatchInlineSnapshot()` instead',
toThrowErrorMatchingSnapshot: 'Use `toThrowErrorMatchingInlineSnapshot()` instead',
toThrowErrorMatchingSnapshot:
'Use `toThrowErrorMatchingInlineSnapshot()` instead',
},
],
'jest/no-test-return-statement': 'off',
Expand Down Expand Up @@ -44,7 +53,12 @@ module.exports = {
// TODO: Migrate this rule change back into `@metamask/eslint-config`
'@typescript-eslint/no-unused-vars': [
'error',
{ vars: 'all', args: 'all', argsIgnorePattern: '[_]+', ignoreRestSiblings: true },
{
vars: 'all',
args: 'all',
argsIgnorePattern: '[_]+',
ignoreRestSiblings: true,
},
],
},
},
Expand Down
15 changes: 0 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@
"ethjs-provider-http": "^0.1.6",
"jest": "^26.4.2",
"jest-environment-jsdom": "^25.0.0",
"lint-staged": "^6.1.0",
"nock": "^13.0.7",
"prettier": "^2.2.1",
"sinon": "^9.2.4",
Expand Down Expand Up @@ -125,19 +124,5 @@
"setupFiles": [
"./tests/setupTests.ts"
]
},
"prettier": {
"arrowParens": "always",
"parser": "typescript",
"printWidth": 120,
"singleQuote": true,
"trailingComma": "all"
},
"lint-staged": {
"*.ts": [
"prettier --ignore-path=.gitignore --write **/*.ts",
"yarn lint",
"git add"
]
}
}
8 changes: 2 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
"strict": true,
"target": "es6"
},
"include": [
"src/**/*.ts"
],
"exclude": [
"**/*.test.ts"
]
"include": ["src/**/*.ts"],
"exclude": ["**/*.test.ts"]
}
Loading

0 comments on commit e5090fb

Please sign in to comment.