prettier
,eslint
,stylelint
commonly used configuration files.
in .eslintrc.js
module.exports = {
extends: [require.resolve('@planjs/fabric/dist/eslint')],
globals: {
App: 'readonly',
Page: 'readonly',
Component: 'readonly',
},
rules: {
// your rules
},
};
in .stylelintrc.js
module.exports = {
extends: [require.resolve('@planjs/fabric/dist/stylelint')],
rules: {
// your rules
},
};
in .prettierrc.js
const { prettier } = require('@planjs/fabric');
module.exports = prettier;