Skip to content

planjs/fabric

Repository files navigation

fabric

prettiereslintstylelint commonly used configuration files.

Usage

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;