Name: eslint-config-yoctol-base
Owner: YOCTOL INFO INC.
Description: Yoctol specific base linting rules for ESLint
Created: 2016-05-06 04:43:08.0
Updated: 2017-02-15 07:26:12.0
Pushed: 2018-01-07 04:08:14.0
Size: 51
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Yoctol Info. base ESLint config, fork from eslint-config-airbnb-base.
We export two ESLint configurations for your usage.
Our default export contains all of our ESLint rules, including ECMAScript 6+. It requires eslint
, eslint-plugin-import
and eslint-plugin-prettier
.
info "eslint-config-yoctol-base@latest" peerDependencies
Linux/OSX users can simply run
port PKG=eslint-config-yoctol-base;
m info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
Which produces and runs a command like:
m install --save-dev eslint-config-yoctol-base eslint@^#.#.# eslint-plugin-import@^#.#.# eslint-plugin-prettier@^#.#.#
Windows users can either install all the peer dependencies manually, or use the install-peerdeps cli tool.
install -g install-peerdeps
all-peerdeps --dev eslint-config-yoctol-base
The cli will produce and run a command like:
install --save-dev eslint-config-yoctol-base eslint@^#.#.# eslint-plugin-import@^#.#.# eslint-plugin-prettier@^#.#.#
"extends": "yoctol-base"
to your .eslintrcLints ES5 and below. Requires eslint
and eslint-plugin-import
.
info "eslint-config-yoctol-base@latest" peerDependencies
Linux/OSX users can simply run
port PKG=eslint-config-yoctol-base;
m info "$PKG" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG"
Which produces and runs a command like:
install --save-dev eslint-config-yoctol-base eslint@^#.#.# eslint-plugin-import@^#.#.# eslint-plugin-prettier@^#.#.#
"extends": "yoctol-base/legacy"
to your .eslintrcSee Airbnb's overarching ESLint config, Airbnb's Javascript styleguide, and the ESlint config docs for more information.
lass-methods-use-this': 'off'
onsistent-return': 'off'
omma-dangle': ['error', {
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'ignore',
rrow-parens': ['error', 'as-needed']
refer-destructuring': [
rror',
VariableDeclarator: {
array: false,
object: true
},
AssignmentExpression: {
array: false,
object: false
}
enforceForRenamedProperties: false
port/prefer-default-export: 'off'
port/order: ['error', {
oups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'],
ewlines-between': 'always',
port/no-extraneous-dependencies: ['error', {
vDependencies: [
'**/__tests__/*.spec.js',
'**/__stories__/*.story.js',
'**/scripts/*.js',
'**/test/**/*.js',
'**/webpack.config.*.js',
lobal-require': 'off'
nebreak-style: 'off'
x-len: ['error', 100, 2, {
norePattern: ' // eslint-disable-line ',
noreUrls: true,
noreComments: false,
noreStrings: true,
noreTemplateLiterals: true,
noreRegExpLiterals: true,
-plusplus: ['error', { allowForLoopAfterthoughts: true }]
-underscore-dangle: 'off'
rettier/prettier': [
rror',
trailingComma: 'es5',
singleQuote: true