Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hzy46 committed Aug 4, 2020
1 parent 54d219f commit 345d3af
Show file tree
Hide file tree
Showing 26 changed files with 3,362 additions and 850 deletions.
2 changes: 1 addition & 1 deletion src/database-controller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
**Environment:** Node.js 8.17.0, use `yarn install` to install all dependencies under `src/` or `sdk/`. To set environmental variables, create a `.env` file under `src`.


**Lint:** Use `npm install standard --global` to isntall Standard.js globally. Then run `npm run lint` under `src/` or `sdk/`.
**Lint:** Run `npm run lintfix` under `src/` or `sdk/`.
7 changes: 7 additions & 0 deletions src/database-controller/sdk/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# ESLint always ignores files in /node_modules/* and /bower_components/*.
/build/**
/deploy/**
/dist/**
/coverage/**
/docs/**
!.eslintrc.js
36 changes: 36 additions & 0 deletions src/database-controller/sdk/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
module.exports = {
plugins: ['eslint-plugin-prettier'],
env: {
browser: false,
es6: true,
node: true,
jquery: true,
},
extends: ['standard', 'plugin:prettier/recommended', 'prettier'],
parserOptions: {
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
globals: {
cookies: 'readonly',
},
settings: {
react: {
version: 'detect',
},
},
rules: {
'prettier/prettier': ['error'],
'max-len': [
'error',
{
code: 120,
ignoreComments: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
},
],
},
};
Loading

0 comments on commit 345d3af

Please sign in to comment.