2.0.0 • Published 6 months ago

@gridventures/eslint-config-base v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

@gridventures/eslint-config-base

npm i -D @gridventures/eslint-config-base eslint prettier

Usage

//.eslintrc.js
module.exports = {
  root: true,

  // adapt it to your project
  env: {
    browser: true,
    es6: true,
    node: true,
  },

  extends: [
    '@gridventures/eslint-config-base',
    // ... other configs
    '@gridventures/eslint-config-base/prettier',  
  ],
};
//.eslintignore
*.html
node_modules
*.d.ts
package-lock.json
# http://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
//.prettierrc
{
  "trailingComma": "all",
  "semi": true,
  "singleQuote": true,
  "useTabs": false,
  "quoteProps": "consistent",
  "bracketSpacing": true,
  "arrowParens": "always",
  "printWidth": 100
}