mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
ui: match eslintrc with ember-new-output
This commit is contained in:
@@ -2,17 +2,6 @@
|
|||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
root: true,
|
root: true,
|
||||||
globals: {
|
|
||||||
server: true,
|
|
||||||
},
|
|
||||||
env: {
|
|
||||||
browser: true,
|
|
||||||
es6: true,
|
|
||||||
},
|
|
||||||
extends: [
|
|
||||||
'eslint:recommended',
|
|
||||||
'plugin:ember/recommended',
|
|
||||||
],
|
|
||||||
parser: 'babel-eslint',
|
parser: 'babel-eslint',
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
ecmaVersion: 2018,
|
ecmaVersion: 2018,
|
||||||
@@ -21,20 +10,15 @@ module.exports = {
|
|||||||
legacyDecorators: true,
|
legacyDecorators: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: [
|
globals: {
|
||||||
'ember'
|
server: true,
|
||||||
],
|
},
|
||||||
|
env: {
|
||||||
|
browser: true,
|
||||||
|
},
|
||||||
|
plugins: ['ember'],
|
||||||
|
extends: ['eslint:recommended', 'plugin:ember/recommended', 'plugin:prettier/recommended'],
|
||||||
rules: {
|
rules: {
|
||||||
indent: ['error', 2, { SwitchCase: 1 }],
|
|
||||||
'linebreak-style': ['error', 'unix'],
|
|
||||||
quotes: ['error', 'single', 'avoid-escape'],
|
|
||||||
semi: ['error', 'always'],
|
|
||||||
'no-constant-condition': [
|
|
||||||
'error',
|
|
||||||
{
|
|
||||||
checkLoops: false,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
'ember/classic-decorator-hooks': 'error',
|
'ember/classic-decorator-hooks': 'error',
|
||||||
'ember/classic-decorator-no-classic-methods': 'error',
|
'ember/classic-decorator-no-classic-methods': 'error',
|
||||||
'ember/no-get': 'off',
|
'ember/no-get': 'off',
|
||||||
@@ -45,13 +29,14 @@ module.exports = {
|
|||||||
{
|
{
|
||||||
files: [
|
files: [
|
||||||
'.eslintrc.js',
|
'.eslintrc.js',
|
||||||
|
'.prettierrc.js',
|
||||||
'.template-lintrc.js',
|
'.template-lintrc.js',
|
||||||
'ember-cli-build.js',
|
'ember-cli-build.js',
|
||||||
'testem.js',
|
'testem.js',
|
||||||
'blueprints/*/index.js',
|
'blueprints/*/index.js',
|
||||||
'config/**/*.js',
|
'config/**/*.js',
|
||||||
'server/**/*.js',
|
|
||||||
'lib/*/index.js',
|
'lib/*/index.js',
|
||||||
|
'server/**/*.js',
|
||||||
],
|
],
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
sourceType: 'script',
|
sourceType: 'script',
|
||||||
@@ -62,13 +47,13 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
plugins: ['node'],
|
plugins: ['node'],
|
||||||
rules: {
|
rules: {
|
||||||
'node/no-unpublished-require': 'off'
|
// this can be removed once the following is fixed
|
||||||
|
// https://github.com/mysticatea/eslint-plugin-node/issues/77
|
||||||
|
'node/no-unpublished-require': 'off',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
files: [
|
files: ['stories/**/*.js'],
|
||||||
'stories/**/*.js'
|
|
||||||
],
|
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
sourceType: 'module',
|
sourceType: 'module',
|
||||||
},
|
},
|
||||||
|
|||||||
21
ui/.prettierignore
Normal file
21
ui/.prettierignore
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# unconventional js
|
||||||
|
/blueprints/*/files/
|
||||||
|
/vendor/
|
||||||
|
|
||||||
|
# compiled output
|
||||||
|
/dist/
|
||||||
|
/tmp/
|
||||||
|
|
||||||
|
# dependencies
|
||||||
|
/bower_components/
|
||||||
|
/node_modules/
|
||||||
|
|
||||||
|
# misc
|
||||||
|
/coverage/
|
||||||
|
!.*
|
||||||
|
.eslintcache
|
||||||
|
|
||||||
|
# ember-try
|
||||||
|
/.node_modules.ember-try/
|
||||||
|
/bower.json.ember-try
|
||||||
|
/package.json.ember-try
|
||||||
5
ui/.prettierrc.js
Normal file
5
ui/.prettierrc.js
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
singleQuote: true,
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user