Skip to content
This repository has been archived by the owner on Jan 11, 2018. It is now read-only.

Commit

Permalink
Disable rule no-restricted-syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeysova committed Nov 29, 2017
1 parent bd25c4b commit 63a8939
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ module.exports = {
],

'no-await-in-loop': 'off',
'no-restricted-syntax': 'off',

'import/no-unresolved': 'off',
'import/extensions': ['error', 'never',
[
Expand Down
12 changes: 12 additions & 0 deletions example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ const example = {
four,
}

const getAsync = data => new Promise(res => setTimeout(res, 1, data))

async function testAsync(list) {
for (const item of list) {
await getAsync(item)
}
}

const PART_NUM = 12
const inside = resolve(
example,
Expand Down Expand Up @@ -62,5 +70,9 @@ let target = global.meet

target = example.first + OFFSET

export function fill() {
return testAsync()
}

export const demo = target * INCR
export default example
11 changes: 11 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,17 @@ In Node.js LTS await in loop is native and optimized.
> Enabled in react

## no-restricted-syntax: `off`

https://eslint.org/docs/rules/no-restricted-syntax

In node.js we want to use "await in for" without Futures.

https://github.com/airbnb/javascript#iterators--nope

> Enabled in react

## import/no-unresolved: `off`

https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-unresolved.md
Expand Down

0 comments on commit 63a8939

Please sign in to comment.