refactor(scout-451): added stylelint (#448)

keep-around/af30b88d367751c9e05a735e4a0467a96238ef47
Ruslan Khayrullin 4 years ago committed by GitHub
parent e76ad0488d
commit 6945f318a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      .stylelintrc
  2. 5
      package.json

@ -0,0 +1,14 @@
{
"processors": [
"stylelint-processor-styled-components"
],
"extends": [
"stylelint-config-recommended",
"stylelint-config-styled-components"
],
"rules": {
"block-no-empty": null,
"selector-type-no-unknown": null,
"no-descending-specificity": null,
}
}

@ -9,6 +9,7 @@
"test:watch": "react-scripts test --testMatch '**/__tests__/*'",
"eject": "react-scripts eject",
"lint": "eslint \"src/**/*.{ts,tsx}\"",
"stylelint": "stylelint \"src/**/*.{ts,tsx}\"",
"storybook": "start-storybook -p 9009 -s public",
"build-storybook": "build-storybook -s public"
},
@ -70,6 +71,10 @@
"husky": "^4.2.5",
"lint-staged": "^10.2.7",
"storybook-addon-styled-component-theme": "^1.3.0",
"stylelint": "^13.13.1",
"stylelint-config-recommended": "^5.0.0",
"stylelint-config-styled-components": "^0.1.1",
"stylelint-processor-styled-components": "^1.10.0",
"ts-loader": "^7.0.5",
"typescript": "^4.1.2"
},

Loading…
Cancel
Save