@nf-team/eslint-config

3.0.1 • Public • Published

@nf-team/eslint-config

🚀 Quick Overview

Install @nf-team/eslint-config dependency

npm install --save-dev @nf-team/eslint-config

Add @nf-team/eslint-config to extends in your .eslintrc

module.exports = {
  // ...
  extends: ['@nf-team/eslint-config'],
  rules: {
    // ...
  },
};

🤔 What eslint extensions does @nf-team/eslint-config have?

View more extensions..

👉 Sort default imports

This is the default value for the groups option:

[
  // Side effect imports.
  ['^\\u0000'],
  // Node.js builtins. You could also generate this regex if you use a `.js` config.
  // For example: `^(${require("module").builtinModules.join("|")})(/|$)`
  // OR Node.js builtins prefixed with `node:`.
  ['^(assert|buffer|child_process|cluster|console|constants|crypto|dgram|dns|domain|events|fs|http|https|module|net|os|path|punycode|querystring|readline|repl|stream|string_decoder|sys|timers|tls|tty|url|util|vm|zlib|freelist|v8|process|async_hooks|http2|perf_hooks)(/.*|$)', '^node:'],
  // Packages. `react` related packages
  ['^react'],
  // Packages. Things that start with a letter (or digit or underscore), or `@` followed by a letter.
  ['^@?\\w'],
  // Parent imports. Put `..` last.
  ['^\\.\\.(?!/?$)', '^\\.\\./?$'],
  // Other relative imports. Put same-folder imports and `.` last.
  ['^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'],
  // Svg file imports.
  ['^.+\\.svg$'],
  // Style imports.
  ['^.+\\.s?css$'],
]

🐛 Bug reporting

Issues

🔒 LICENSE

This libraries is MIT licensed.

Package Sidebar

Install

npm i @nf-team/eslint-config

Weekly Downloads

2

Version

3.0.1

License

MIT

Unpacked Size

8.73 kB

Total Files

5

Last publish

Collaborators

  • seung02169