Skip to content

Commit a312c54

Browse files
committed
chore: update example lint config
1 parent 96671e9 commit a312c54

File tree

5 files changed

+44
-4363
lines changed

5 files changed

+44
-4363
lines changed

examples/green-wall/.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
root: true,
3-
extends: [require.resolve('prefer-code-style/lib/eslint')],
3+
extends: [require.resolve('../../lib/eslint')],
44
ignorePatterns: [
55
'public',
66
'yarn*',

examples/green-wall/.prettierrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { prettier } = require('prefer-code-style')
1+
const { prettier } = require('../../lib')
22

33
module.exports = {
44
...prettier,

examples/green-wall/.stylelintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
extends: [require.resolve('prefer-code-style/lib/stylelint')],
2+
extends: [require.resolve('../../lib/stylelint')],
33
rules: {
44
'color-function-notation': 'modern',
55
'selector-id-pattern': null,

examples/green-wall/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"build": "next build",
88
"deps": "yarn upgrade-interactive --latest",
99
"dev": "next dev",
10-
"lint": "next lint && npm run lint:style && npm run lint:ts",
10+
"lint": "next lint && npm run lint:ts && npm run lint:style",
1111
"lint:es": "eslint \"**/*.{mjs,js,jsx,ts,tsx}\"",
1212
"lint:prettier": "prettier --write \"**/*.{md,json,html}\"",
1313
"lint:style": "stylelint \"**/*.{css,.module.css}\"",
@@ -37,7 +37,6 @@
3737
"@types/react": "18.0.20",
3838
"autoprefixer": "^10.4.11",
3939
"postcss": "^8.4.16",
40-
"prefer-code-style": "0.6.9",
4140
"tailwindcss": "^3.1.8",
4241
"typescript": "^4.8.3"
4342
}

0 commit comments

Comments
 (0)