mirror of
https://github.com/renovatebot/github-action.git
synced 2025-12-16 00:42:35 +00:00
chore(lint): update ESlint config to run prettier
This commit is contained in:
parent
2bf775c20e
commit
5196b054ea
3 changed files with 10 additions and 13 deletions
16
.eslintrc.js
16
.eslintrc.js
|
|
@ -1,24 +1,22 @@
|
|||
module.exports = {
|
||||
extends: [
|
||||
'eslint:recommended',
|
||||
'plugin:@typescript-eslint/eslint-recommended',
|
||||
'plugin:@typescript-eslint/recommended',
|
||||
'prettier',
|
||||
'prettier/@typescript-eslint',
|
||||
'plugin:prettier/recommended',
|
||||
],
|
||||
parser: '@typescript-eslint/parser',
|
||||
plugins: ['@typescript-eslint', 'json'],
|
||||
plugins: ['@typescript-eslint', 'prettier', 'json'],
|
||||
parserOptions: {
|
||||
ecmaVersion: 2018,
|
||||
sourceType: 'module',
|
||||
ecmaFeatures: {
|
||||
jsx: true,
|
||||
},
|
||||
},
|
||||
env: {
|
||||
es6: true,
|
||||
es2020: true,
|
||||
node: true,
|
||||
},
|
||||
rules: {
|
||||
'no-fallthrough': 'error',
|
||||
'sort-imports': 'warn',
|
||||
'prettier/prettier': 'error',
|
||||
'sort-imports': 'error',
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue