-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add commit hooks and fix bug * add prettier config * format * rebase
- Loading branch information
Showing
50 changed files
with
52,508 additions
and
44,401 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
parser: babel-eslint | ||
extends: jason/react | ||
extends: | ||
- jason/react | ||
- prettier | ||
|
||
rules: | ||
global-require: off |
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,43 +1,19 @@ | ||
const path = require('path'); | ||
const Autoprefixer = require('less-plugin-autoprefix'); | ||
const { rules, loaders, plugins, stats } = require("webpack-atoms"); | ||
|
||
module.exports = { | ||
resolve: { | ||
extensions: ['.js', '.jsx'] | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.css?$/, | ||
loaders: [ 'style', 'raw' ], | ||
include: [ | ||
path.resolve(__dirname, '../') | ||
] | ||
}, | ||
{ | ||
test: /\.less?$/, | ||
use: [ | ||
'style-loader', | ||
'css-loader', | ||
{ | ||
loader: 'less-loader', | ||
options: { | ||
plugins: [ | ||
new Autoprefixer({ | ||
browsers: ['last 2 versions', 'ie >= 10'] | ||
}) | ||
] | ||
}, | ||
} | ||
], | ||
include: [ | ||
path.resolve(__dirname, '../') | ||
] | ||
}, | ||
{test: /\.(woff|woff2)(\?v=\d+\.\d+\.\d+)?$/, loader: 'url?limit=10000&mimetype=application/font-woff'}, | ||
{test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: 'url?limit=10000&mimetype=application/octet-stream'}, | ||
{test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, loader: 'file'}, | ||
{test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, loader: 'url?limit=10000&mimetype=image/svg+xml'} | ||
] | ||
} | ||
const browsers = ["last 2 versions", "ie >= 10"]; | ||
|
||
module.exports = function(config) { | ||
return { | ||
...config, | ||
module: { | ||
rules: [ | ||
rules.js(), | ||
rules.fonts(), | ||
rules.images(), | ||
rules.css(), | ||
rules.less({ browsers }) | ||
] | ||
}, | ||
plugins: [...config.plugins, plugins.extractText()] | ||
}; | ||
}; |
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,5 +1,9 @@ | ||
|
||
rules: | ||
no-console: off | ||
globals: | ||
alert: false | ||
settings: | ||
import/resolver: | ||
webpack: | ||
config: 'webpack/examples.config.js' | ||
config: 'examples/webpack.config.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
Oops, something went wrong.