Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
b1ce4598
Commit
b1ce4598
authored
8 years ago
by
Keyan Zhang
Committed by
Dan Abramov
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Dogfood our eslint config (#68)
* dogfood eslint config * moved linting to e2e
parent
417f3a77
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.eslintrc.js
+7
-0
.eslintrc.js
scripts/eject.js
+1
-1
scripts/eject.js
tasks/e2e.sh
+3
-0
tasks/e2e.sh
with
11 additions
and
1 deletion
+11
-1
.eslintrc.js
0 → 100644
+
7
-
0
View file @
b1ce4598
const
clientESLintConfig
=
require
(
'
./config/eslint
'
);
module
.
exports
=
Object
.
assign
({},
clientESLintConfig
,
{
env
:
Object
.
assign
({},
clientESLintConfig
.
env
,
{
node
:
true
})
});
This diff is collapsed.
Click to expand it.
scripts/eject.js
+
1
-
1
View file @
b1ce4598
...
@@ -69,7 +69,7 @@ prompt('Are you sure you want to eject? This action is permanent. [y/N]', functi
...
@@ -69,7 +69,7 @@ prompt('Are you sure you want to eject? This action is permanent. [y/N]', functi
files
.
forEach
(
function
(
file
)
{
files
.
forEach
(
function
(
file
)
{
console
.
log
(
'
Copying
'
+
file
+
'
to
'
+
hostPath
);
console
.
log
(
'
Copying
'
+
file
+
'
to
'
+
hostPath
);
content
=
fs
var
content
=
fs
.
readFileSync
(
path
.
join
(
selfPath
,
file
),
'
utf8
'
)
.
readFileSync
(
path
.
join
(
selfPath
,
file
),
'
utf8
'
)
// Remove license header from JS
// Remove license header from JS
.
replace
(
/^
\/\*\*(\*(?!\/)
|
[^
*
])
*
\*\/
/
,
''
)
.
replace
(
/^
\/\*\*(\*(?!\/)
|
[^
*
])
*
\*\/
/
,
''
)
...
...
This diff is collapsed.
Click to expand it.
tasks/e2e.sh
+
3
-
0
View file @
b1ce4598
...
@@ -30,6 +30,9 @@ perl -i -p0e 's/bundledDependencies.*?]/bundledDependencies": []/s' package.json
...
@@ -30,6 +30,9 @@ perl -i -p0e 's/bundledDependencies.*?]/bundledDependencies": []/s' package.json
npm
install
npm
install
scripts_path
=
$PWD
/
`
npm pack
`
scripts_path
=
$PWD
/
`
npm pack
`
# lint
./node_modules/.bin/eslint
--ignore-path
.gitignore ./
# Pack CLI
# Pack CLI
cd
global-cli
cd
global-cli
npm
install
npm
install
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets