@diesdasdigital/linting
A reusable set of linting rules for use with any Diesdas internal project which
uses Stylelint and/or Eslint.
Getting Started
Install @diesdasdigital/linting
, stylelint
and eslint
to your project.
yarn add --dev @diesdasdigital/linting stylelint eslint
Create a new stylelint.config.js
file at the root of your project, which
extends @diesdasdigital/linting/stylelint-config
.
module.exports = {
extends: "@diesdasdigital/linting/stylelint-config",
rules: {
}
};
Create a new .eslintrc.js
file at the root of your project, which extends
@diesdasdigital/linting/eslint-config
.
module.exports = {
extends: ["./node_modules/@diesdasdigital/linting/eslint-config"],
rules: {
}
};
You're done!