-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: 升级过期依赖 * chore: remove tmp * 1.0.0-0 * chore: add prettier * fix: lint config * chore: add ts example * 1.0.0-1 * fix: rules * 1.0.0-2 * fix: rule * 1.0.0-3 * chore: lint * 1.0.0 * fix: ts allow empty function * 1.0.1 * chore: remove issue template
- Loading branch information
Showing
17 changed files
with
232 additions
and
91 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 |
---|---|---|
@@ -1,9 +1,7 @@ | ||
const { eslint, deepmerge } = require('./lib'); | ||
|
||
const eslintConfig = deepmerge(eslint, { | ||
module.exports = deepmerge(eslint, { | ||
env: { | ||
jest: true | ||
} | ||
}); | ||
|
||
module.exports = eslintConfig; |
13 changes: 0 additions & 13 deletions
13
.github/ISSUE_TEMPLATE/please-use-https---github-com-alibaba-ice-issues.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const { prettier } = require('./lib'); | ||
|
||
module.exports = prettier; |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
const { stylelint, deepmerge } = require('./lib'); | ||
|
||
module.exports = deepmerge(stylelint, { | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.a { | ||
position: relative; | ||
font-size: 12px; | ||
|
||
/* color: 2; */ | ||
} | ||
|
||
.b { | ||
font-display: x; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
const foo = 1; | ||
function bar() {} | ||
function baz() {} | ||
|
||
module.exports = () => { | ||
console.log(111); | ||
console.log(111); | ||
console.log(111); | ||
console.log(111); | ||
console.log(111); | ||
console.log(111); | ||
console.log(111); | ||
console.log(111); | ||
console.log(111); | ||
console.log(111); | ||
console.log(111); | ||
console.log(111); | ||
const a = 'sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss'; | ||
console.log(111, a); | ||
console.log(222); | ||
|
||
const b = { | ||
'a': 1, | ||
'b': 1, | ||
}; | ||
const c = 'xxxx'; | ||
console.log(b); | ||
|
||
if (foo) { | ||
bar(); | ||
} | ||
|
||
if (foo) { | ||
bar(); | ||
baz(); | ||
} | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import React, { useState } from 'react'; | ||
|
||
let actions; | ||
|
||
function A() { | ||
const a = 1; | ||
switch (a) { | ||
case 1: | ||
actions = ( | ||
<div> | ||
下一步 | ||
</div> | ||
); | ||
break; | ||
case 0: | ||
break; | ||
default: | ||
break; | ||
} | ||
return ( | ||
<React.Fragment></React.Fragment> | ||
) | ||
} | ||
|
||
const a = actions ? { | ||
c: 1, | ||
} : { d: 2 }; | ||
const g = actions | ||
? { | ||
c: 1, | ||
} : { d: 2 }; |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const { tslint, deepmerge } = require('../../lib'); | ||
|
||
module.exports = deepmerge(tslint, { | ||
env: { | ||
jest: true | ||
} | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
const a = 1; | ||
|
||
export default () => { | ||
const b = 2; | ||
} | ||
|
||
|
||
function add() {} |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react'; | ||
|
||
let actions; | ||
function A() { | ||
switch (true) { | ||
case true: | ||
actions = ( | ||
<div> | ||
下一步 | ||
</div> | ||
); | ||
break; | ||
default: | ||
break; | ||
} | ||
return ( | ||
<React.Fragment></React.Fragment> | ||
) | ||
} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
singleQuote: true | ||
}; |
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,15 +1,15 @@ | ||
module.exports = { | ||
extends: [ | ||
require.resolve("stylelint-config-standard"), | ||
require.resolve("stylelint-config-css-modules"), | ||
require.resolve("stylelint-scss"), | ||
require.resolve("stylelint-config-rational-order"), | ||
require.resolve("stylelint-config-prettier"), | ||
require.resolve('stylelint-config-standard'), | ||
require.resolve('stylelint-config-css-modules'), | ||
require.resolve('stylelint-scss'), | ||
require.resolve('stylelint-config-rational-order'), | ||
require.resolve('stylelint-config-prettier'), | ||
], | ||
plugins: [ | ||
"stylelint-order", | ||
'stylelint-order', | ||
], | ||
rules: { | ||
"no-empty-source": null, | ||
'no-empty-source': null, | ||
}, | ||
}; |
Oops, something went wrong.