mirror of
https://github.com/mshick/add-pr-comment.git
synced 2025-12-31 14:20:32 +11:00
45 lines
1,013 B
JavaScript
45 lines
1,013 B
JavaScript
module.exports = {
|
|
root: true,
|
|
extends: ['eslint:recommended', 'plugin:prettier/recommended', 'plugin:import/errors', 'plugin:import/warnings'],
|
|
plugins: ['prettier'],
|
|
env: {
|
|
node: true,
|
|
es6: true,
|
|
},
|
|
parserOptions: {
|
|
ecmaVersion: 2018,
|
|
},
|
|
settings: {
|
|
'import/parsers': {
|
|
'@typescript-eslint/parser': ['.ts', '.tsx'],
|
|
},
|
|
'import/resolver': {
|
|
typescript: {
|
|
alwaysTryTypes: true,
|
|
},
|
|
},
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ['**/*.ts'],
|
|
parser: '@typescript-eslint/parser',
|
|
plugins: ['@typescript-eslint'],
|
|
extends: [
|
|
'plugin:import/typescript',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'prettier/@typescript-eslint',
|
|
'plugin:prettier/recommended',
|
|
],
|
|
parserOptions: {
|
|
ecmaVersion: 2018,
|
|
project: ['tsconfig.json'],
|
|
sourceType: 'module',
|
|
tsconfigRootDir: __dirname,
|
|
},
|
|
env: {
|
|
node: true,
|
|
es6: true,
|
|
},
|
|
},
|
|
],
|
|
}
|