Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@remulocosta
Created March 30, 2020 17:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save remulocosta/8bc50b4032732b1a6514f5c10196abfc to your computer and use it in GitHub Desktop.
Save remulocosta/8bc50b4032732b1a6514f5c10196abfc to your computer and use it in GitHub Desktop.
Initial styled code NodeJS commonJS airbnb-base
# editorconfig.org
root = true
[*]
indent_size = 2
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false
module.exports = {
env: {
es6: true,
node: true
},
extends: [
'airbnb-base',
'prettier'
],
'plugins': [
'prettier',
'import-helpers'
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly'
},
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module'
},
rules: {
'prettier/prettier': 'error',
'no-param-reassign': 'off',
'camelcase': 'off',
'class-methods-use-this': 'off',
'no-unused-vars': ['error', {'argsIgnorePattern': 'next'}],
'func-names': ['error', 'never', { 'generators': 'as-needed' }],
'no-console': 0,
'import-helpers/order-imports': [
'warn',
{
newlinesBetween: 'always', // new line between groups
groups: [
'/^react/',
'module',
'/^@shared/',
'/^~/',
['parent', 'sibling', 'index'],
],
alphabetize: { order: 'asc', ignoreCase: true },
},
],
}
}
{
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"trailingComma": "es5"
}
{
"name": "",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "nodemon src/index.js"
},
"keywords": [],
"author": "Remulo Costa <remulo.costa@gmail.com>",
"license": "MIT",
"dependencies": {
},
"devDependencies": {
"eslint": "^6.8.0",
"eslint-config-airbnb-base": "^14.1.0",
"eslint-config-prettier": "^6.10.1",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-import-helpers": "^1.0.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"nodemon": "^2.0.2",
"prettier": "^2.0.2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment