@hellospruce/eslint-config-spruce-app
v1.0.0
Published
Spruce TypeScript ESLint config with Prettier support
Downloads
0
Readme
eslint-config-spruce-app
Following Airbnb's popular styleguide ESlint packages with support for TypeScript, React & Prettier.
How to use
Install eslint-config-spruce-app
and it's dependencies:
// yarn
npx install-peerdeps @hellospruce/eslint-config-spruce-app --dev
// npm
npx install-peerdeps @hellospruce/eslint-config-spruce-app --save-dev
Base (NO React support)
// .eslintrc.js
module.exports = {
extends: ["@hellospruce/eslint-config-spruce-app"],
};
React
// .eslintrc.js
module.exports = {
extends: [
"react-app", // Remove if not bootstrapped with CRA
"@hellospruce/eslint-config-spruce-app/react",
],
};
Next
// .eslintrc.js
module.exports = {
extends: ["@hellospruce/eslint-config-spruce-app/next"],
};