node-web-gpio/.eslintrc.js
Akihiko.KIgure 13b6bc57b1
Feature/lint (#22)
* eslint package install

* scrupt add .

* warning resolved

* warning resolced

* error  Async function 'requestGPIOAccess' has no 'await' expression resolved

* Promise returned in function argument where a void return was expected resolved

* package-lock.json 削除

* script improve

* temporary commit

* L234 disabled eslint rules

* L159 lint disabled

* レビュー指摘事項反映
2021-03-28 17:31:23 +09:00

24 lines
No EOL
603 B
JavaScript

module.exports = {
root: true,
env: {
es6: true,
node: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
ecmaVersion: 2019, // Node.js 12の場合は2019、他のバージョンのNode.jsを利用している場合は場合は適宜変更する
tsconfigRootDir: __dirname,
project: ['./tsconfig.eslint.json']
},
plugins: [
'@typescript-eslint',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
],
rules: {
},
};