Skip to content

Commit cb5944c

Browse files
committed
migrate from standalone prettier to eslint plugin
1 parent 1ed41b9 commit cb5944c

File tree

4 files changed

+653
-3763
lines changed

4 files changed

+653
-3763
lines changed

.eslintrc.js

+10-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ module.exports = {
33
browser: true,
44
es2021: true,
55
},
6-
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
6+
extends: [
7+
'eslint:recommended',
8+
'plugin:@typescript-eslint/recommended',
9+
'plugin:prettier/recommended',
10+
],
711
overrides: [
812
{
913
env: {
@@ -20,8 +24,12 @@ module.exports = {
2024
ecmaVersion: 'latest',
2125
sourceType: 'module',
2226
},
23-
plugins: ['@typescript-eslint'],
27+
plugins: ['@typescript-eslint', 'prettier'],
2428
rules: {
2529
'@typescript-eslint/ban-ts-comment': 'off',
30+
'linebreak-style': ['error', 'unix'],
31+
quotes: ['error', 'single', { avoidEscape: true }],
32+
semi: ['error', 'never'],
33+
'prettier/prettier': 'error',
2634
},
2735
}

.github/workflows/lint.yaml

-3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,3 @@ jobs:
2323
with:
2424
name: eslint-report
2525
path: ./eslint-report.json
26-
27-
- name: Run Prettier
28-
run: npm run prettier:check

0 commit comments

Comments
 (0)