Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use package.json prettier config way
- Loading branch information
1 parent
8fde366
commit 9af5612
Showing
8 changed files
with
23 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ module.exports = { | |
rules: { | ||
'header-max-length': [0, 'always', 120], | ||
}, | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,6 +50,6 @@ const config = { | |
version: 'detect', | ||
}, | ||
}, | ||
}; | ||
} | ||
|
||
module.exports = config; | ||
module.exports = config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
const test = require('tape'); | ||
const test = require('tape') | ||
|
||
test('entry point parses', (t) => { | ||
t.doesNotThrow(() => require('..'), 'index does not throw'); | ||
t.end(); | ||
}); | ||
t.doesNotThrow(() => require('..'), 'index does not throw') | ||
t.end() | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
const eslint = require('eslint'); | ||
const test = require('tape'); | ||
const eslint = require('eslint') | ||
const test = require('tape') | ||
|
||
test('load config in eslint to validate all rule syntax is correct', (t) => { | ||
const cli = new eslint.CLIEngine({ | ||
useEslintrc: false, | ||
configFile: 'index.js', | ||
}); | ||
}) | ||
|
||
const code = ` | ||
const Hello = ({ name }: { name: string }) => { | ||
return <div>Hello, {name}!</div> | ||
} | ||
`; | ||
` | ||
|
||
const result = cli.executeOnText(code); | ||
const result = cli.executeOnText(code) | ||
|
||
t.equal(result.errorCount, 0); | ||
t.end(); | ||
}); | ||
t.equal(result.errorCount, 0) | ||
t.end() | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
module.exports = require('./.eslintrc.js'); | ||
module.exports = require('./.eslintrc.js') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
const test = require('tape'); | ||
const test = require('tape') | ||
|
||
test('entry point parses', (t) => { | ||
t.doesNotThrow(() => require('../index.json'), 'index does not throw'); | ||
t.end(); | ||
}); | ||
t.doesNotThrow(() => require('../index.json'), 'index does not throw') | ||
t.end() | ||
}) |