Skip to content

Commit 71feaa8

Browse files
authored
Merge pull request #672 from kalcifer/proselint-fix
Fix: Enable proselint and jslint for PRs.
2 parents 66286f8 + 9ebf0f0 commit 71feaa8

File tree

17 files changed

+27
-25
lines changed

17 files changed

+27
-25
lines changed

.proselintrc

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
22
"max_errors": 1000,
33
"checks": {
4-
"phrasal_adjectives.ly" : false,
5-
"preferred_form" : false,
6-
"symbols.curly_quotes" : false,
4+
"phrasal_adjectives.ly" : false,
5+
"preferred_forms" : false,
76
"airlinese.misc" : true,
87
"annotations.misc" : false,
98
"archaism.misc" : true,
@@ -18,7 +17,7 @@
1817
"dates_times.am_pm" : true,
1918
"dates_times.dates" : true,
2019
"hedging.misc" : true,
21-
"hyperbole.misc" : true,
20+
"hyperbole.misc" : false,
2221
"jargon.misc" : true,
2322
"lexical_illusions.misc" : true,
2423
"links.broken" : false,
@@ -42,8 +41,8 @@
4241
"misc.metadiscourse" : true,
4342
"misc.narcissism" : true,
4443
"misc.not_guilty" : true,
45-
"misc.phrasal_adjectives" : true,
46-
"misc.preferred_forms" : true,
44+
"misc.phrasal_adjectives" : false,
45+
"misc.preferred_forms" : false,
4746
"misc.pretension" : true,
4847
"misc.professions" : true,
4948
"misc.punctuation" : true,
@@ -76,8 +75,8 @@
7675
"terms.eponymous_adjectives" : true,
7776
"terms.venery" : true,
7877
"typography.diacritical_marks" : true,
79-
"typography.exclamation" : true,
80-
"typography.symbols" : true,
78+
"typography.exclamation" : false,
79+
"typography.symbols" : false,
8180
"uncomparables.misc" : true,
8281
"weasel_words.misc" : true,
8382
"weasel_words.very" : true

content/concepts/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Use these features when appropriate.
2121

2222
* Access CLI arguments, when using the webpack CLI (instead write your own CLI, or use `--env`)
2323
* Export non-deterministic values (calling webpack twice should result in the same output files)
24-
* Write very long configurations (instead split the configuration into multiple files)
24+
* Write long configurations (instead split the configuration into multiple files)
2525

2626
The following examples below describe how webpack's configuration object can be both expressive and configurable because _it is code_:
2727

content/concepts/entry-points.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const config = {
5252

5353
The object syntax is more verbose. However, this is the most scalable way of defining entry/entries in your application.
5454

55-
T> **"Scalable webpack configurations"** are ones that can be reused and combined with other partial configurations. This is a popular technique used to separate concerns by environment, build target and runtime. They are then merged together using specialized tools like [webpack-merge](https://github.com/survivejs/webpack-merge).
55+
T> **"Scalable webpack configurations"** are ones that can be reused and combined with other partial configurations. This is a popular technique used to separate concerns by environment, build target and runtime. They are then merged using specialized tools like [webpack-merge](https://github.com/survivejs/webpack-merge).
5656

5757
## Scenarios
5858

content/configuration/dev-server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ port: 8080
266266

267267
Proxying some URLs can be useful when you have a separate API backend development server and you want to send API requests on the same domain.
268268

269-
The dev-server makes use of the very powerful [http-proxy-middleware](https://github.com/chimurai/http-proxy-middleware) package. Checkout its [documentation](https://github.com/chimurai/http-proxy-middleware#options) for more advanced usages.
269+
The dev-server makes use of the powerful [http-proxy-middleware](https://github.com/chimurai/http-proxy-middleware) package. Checkout its [documentation](https://github.com/chimurai/http-proxy-middleware#options) for more advanced usages.
270270

271271
With a backend on `localhost:3000`, you can use this to enable proxying:
272272

content/configuration/devtool.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ Choose a style of [source mapping](http://blog.teamtreehouse.com/introduction-so
2626
source-map | -- | -- | yes | original source
2727
nosources-source-map | -- | -- | yes | without source content
2828

29-
Some of these values are suited for development and some for production. For development you typically want very fast Source Maps at the cost of bundle size, but for production you want separate Source Maps that are accurate.
29+
Some of these values are suited for development and some for production. For development you typically want fast Source Maps at the cost of bundle size, but for production you want separate Source Maps that are accurate.
3030

3131
W> There are some issues with Source Maps in Chrome. [We need your help!](https://github.com/webpack/webpack/issues/3165).
3232

3333
### For development
3434

35-
`eval` - Each module is executed with `eval()` and `//@ sourceURL`. This is very fast. The main disadvantage is that it doesn't display line numbers correctly since it gets mapped to transpiled code instead of the original code.
35+
`eval` - Each module is executed with `eval()` and `//@ sourceURL`. This is pretty fast. The main disadvantage is that it doesn't display line numbers correctly since it gets mapped to transpiled code instead of the original code.
3636

3737
`inline-source-map` - A SourceMap is added as DataUrl to the bundle.
3838

content/configuration/output.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ Only used when [`target`](/configuration/target) is web, which uses JSONP for lo
191191

192192
A JSONP function name used to asynchronously load chunks or join multiple initial chunks (CommonsChunkPlugin, AggressiveSplittingPlugin).
193193

194-
It's required to change it if multiple webpack runtimes (from different compilation) are used on the same page.
194+
This needs to be changed if multiple webpack runtimes (from different compilation) are used on the same webpage.
195195

196196
If using the [`output.library`](#output-library) option, the library name is automatically appended.
197197

content/get-started/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ You should see a page with the following text: 'Hello webpack'.
118118

119119
## Using webpack with a config
120120

121-
For more complex configuration, we can use a configuration file that webpack can reference to bundle your code. After you create a `webpack.config.js` file, represent the CLI command above
121+
For more complex configuration, we can use a configuration file that webpack can reference to bundle your code. After you create a `webpack.config.js` file, represent the CLI command above
122122
with the following config settings -
123123

124124
__webpack.config.js__

content/get-started/install-webpack.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ sort: 1
1010

1111
Before getting started, make sure you have a fresh version of [Node.js](https://nodejs.org/en/) installed. The current LTS is an ideal starting point. You may run into a variety of issues with the older versions as they may be missing functionality webpack or related packages might need.
1212

13-
Note that this documentation is for webpack 2, for which there is not yet a stable release. You can get the most recent beta by installing with the `beta` tag (see below).
13+
Note that this documentation is for webpack 2, for which there is not yet a stable release. You can get the most recent beta by installing with the `beta` tag (see below).
1414

1515
### Global Installation
1616

content/guides/code-splitting-require.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This is an array of strings where we can declare all the modules that need to be
2424
This is the callback function that webpack will execute once the dependencies are loaded. An implementation of the require object is sent as a parameter to this function. This is so that, we can further `require()` the dependencies and any other modules for execution.
2525

2626
#### chunkName
27-
The chunkName is the name given to the chunk created by this particular `require.ensure()`. By giving the same name at various different split points of `require.ensure()`, we can make sure all the dependencies are collectively put in the same bundle.
27+
The chunkName is the name given to the chunk created by this particular `require.ensure()`. By giving the same name at different split points of `require.ensure()`, we can make sure all the dependencies are collectively put in the same bundle.
2828

2929
Let us consider the following project
3030

content/guides/code-splitting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ There are mainly two kinds of code splitting that can be accomplished with webpa
1414

1515
### Vendor code splitting
1616

17-
A typical application can depend on many third party libraries for framework/functionality needs. Unlike application code, code present in these libraries does not change very often.
17+
A typical application can depend on many third party libraries for framework/functionality needs. Unlike application code, code present in these libraries does not change often.
1818

1919
If we keep code from these libraries in its own bundle, separate from the application code, we can leverage the browser's caching mechanism to cache these files for longer durations on the end user's machine.
2020

0 commit comments

Comments
 (0)