Skip to content

Commit 6004557

Browse files
committed
rm unused stylelint
1 parent 14260f6 commit 6004557

8 files changed

Lines changed: 31 additions & 378 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ jobs:
4545
- name: pretty
4646
run: yarn pretty
4747

48-
- name: Lint styles
49-
run: yarn lint-styles
50-
5148
test:
5249
permissions:
5350
checks: write

.lintstagedrc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
2-
"*{.ts,*.tsx,*.js,*.jsx}": ["eslint --fix", "prettier --write --check", "stylelint --fix"],
2+
"*{.ts,*.tsx,*.js,*.jsx}": ["eslint --fix", "prettier --write --check"],
33
"*.json": ["prettier --write --check"],
4-
"*.html": ["prettier --write --check"],
5-
"*.scss": ["stylelint --fix"]
4+
"*.html": ["prettier --write --check"]
65
}

.storybook/main.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,22 @@ module.exports = {
55
'../src/pages/*/*.stories.@(js|jsx|ts|tsx)'
66
: '../src/**/*.stories.@(js|jsx|ts|tsx)',
77
],
8+
89
addons: [
910
'@storybook/addon-links',
1011
'@storybook/addon-essentials',
1112
'@storybook/preset-create-react-app',
1213
],
14+
1315
framework: '@storybook/react',
16+
1417
env: config => ({
1518
...config,
1619
// Always run Storybook in test environment
1720
REACT_APP_CHAIN_ID: 5,
1821
}),
22+
23+
docs: {
24+
autodocs: true
25+
}
1926
};

.stylelintrc.js

Lines changed: 0 additions & 31 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Types are checked by running `tsc`.
7171

7272
### Code Style
7373

74-
We are enforcing code styles using eslint, prettier and stylelint.
74+
We are enforcing code styles using eslint and prettier.
7575

7676
### Visual Regression Tests
7777

package.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@
77
},
88
"scripts": {
99
"start": "react-scripts --max_old_space_size=4096 start",
10-
"prepare": "git apply patches/@stylelint+postcss-css-in-js+0.37.2.patch",
1110
"build": "react-scripts --max_old_space_size=4096 build",
1211
"test": "TZ=UTC REACT_APP_CHAIN_ID=5 react-scripts test --resolver jest-resolver-enhanced --setupFiles ./jest-shim.js",
1312
"eject": "react-scripts eject",
1413
"pretty": "yarn prettier \"src/**/*.{js,jsx,ts,tsx,html,json,md}\" public/**/*.html --check",
1514
"lint": "export NODE_OPTIONS=\"--max-old-space-size=4096\" && eslint .",
16-
"lint:fix": "yarn lint --fix && yarn pretty --write && yarn lint-styles --fix",
17-
"lint-styles": "stylelint 'src/**/*.{css,scss,ts,tsx,js,jsx}'",
15+
"lint:fix": "yarn lint --fix && yarn pretty --write",
1816
"typecheck": "tsc",
1917
"extract-translation-keys": "i18next",
2018
"generate-contract-types": "typechain --target=web3-v1 --out-dir=src/types/contracts 'src/constants/contracts/abis/*.json'",
@@ -82,7 +80,6 @@
8280
"@storybook/node-logger": "6.4.9",
8381
"@storybook/preset-create-react-app": "^3.2.0",
8482
"@storybook/react": "6.4.9",
85-
"@stylelint/postcss-css-in-js": "0.37.2",
8683
"@testing-library/dom": "^8.13.0",
8784
"@testing-library/react-hooks": "^8.0.1",
8885
"@trivago/prettier-plugin-sort-imports": "^3.2.0",
@@ -116,7 +113,6 @@
116113
"loki": "^0.25.1",
117114
"msw": "^0.36.8",
118115
"msw-storybook-addon": "^1.6.0",
119-
"postcss-syntax": "^0.36.2",
120116
"prettier": "^2.5.1",
121117
"prettier-airbnb-config": "^1.0.0",
122118
"react-error-overlay": "6.0.9",
@@ -125,10 +121,6 @@
125121
"reg-notify-github-plugin": "^0.11.1",
126122
"reg-publish-s3-plugin": "^0.11.0",
127123
"reg-suit": "^0.11.1",
128-
"stylelint": "^14.3.0",
129-
"stylelint-config-prettier": "^9.0.3",
130-
"stylelint-config-standard": "^18.3.0",
131-
"stylelint-scss": "^3.9.2",
132124
"typechain": "^8.0.0",
133125
"typescript": "^4.5.5",
134126
"web3-core": "^1.7.3"

patches/@stylelint+postcss-css-in-js+0.37.2.patch

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)