Commit 278ad7d7 authored by Mark Tyneway's avatar Mark Tyneway

linting: consolidate rules

parent 5ba91240
...@@ -6,11 +6,12 @@ module.exports = { ...@@ -6,11 +6,12 @@ module.exports = {
}, },
ignorePatterns: ['dist', 'coverage', 'packages/contracts/hardhat'], ignorePatterns: ['dist', 'coverage', 'packages/contracts/hardhat'],
extends: ['plugin:prettier/recommended'], extends: ['plugin:prettier/recommended'],
parser: 'babel-eslint', parser: '@babel/eslint-parser',
parserOptions: { parserOptions: {
es6: true, es6: true,
ecmaVersion: 6, ecmaVersion: 6,
sourceType: 'module', sourceType: 'module',
requireConfigFile: false,
}, },
plugins: [ plugins: [
'eslint-plugin-import', 'eslint-plugin-import',
...@@ -25,7 +26,7 @@ module.exports = { ...@@ -25,7 +26,7 @@ module.exports = {
files: ['**/*.ts'], files: ['**/*.ts'],
parser: '@typescript-eslint/parser', parser: '@typescript-eslint/parser',
parserOptions: { parserOptions: {
project: 'tsconfig.json', project: './packages/**/tsconfig.json',
sourceType: 'module', sourceType: 'module',
allowAutomaticSingleRunInference: true, allowAutomaticSingleRunInference: true,
}, },
......
...@@ -17,7 +17,7 @@ module.exports = { ...@@ -17,7 +17,7 @@ module.exports = {
bracketSpacing: true, bracketSpacing: true,
// These options are specific to the Solidity Plugin // These options are specific to the Solidity Plugin
explicitTypes: 'always', explicitTypes: 'always',
compiler: '0.8.9', compiler: '>=0.8.10',
}, },
}, },
], ],
......
{
"$schema": "http://json.schemastore.org/prettierrc",
"trailingComma": "es5",
"tabWidth": 2,
"semi": false,
"singleQuote": true,
"arrowParens": "always"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment